Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
chocolate.cklt
chocolate.cklt's Profile
3
Posts
5
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Error changing array for arraylist
[3 Replies]
15-Sep-2012 05:21 PM
Forum:
Programming Questions
Hi all!
I have an array but I changed it to arraylist because I don't want it to be fixed. After this change I am getting an error that I don't understand.
This is the part of the code that has the problem, exactly the second line:
for (int i = 0; i < pl.length; i++) {
for (int j = 0; j < gF.size(); j++) pl[i].setNuevaDireccion(gF[j].x, gF[j].y, gF[j].radius, 1500*gF.size(), .4);
for (int j = 0; j < pl.length; j++) {
if ( j != i) pl[i].setNuevaDireccion(pl[j].x, pl[j].y, pl[j].radius, 2000, .6);
}
pl[i].setNuevaPosicion();
}
The second line was working perfect previous this change:
From:
for (int j = 0; j < gF.length; j++) pl[i].setNuevaDireccion(gF[j].x, gF[j].y, gF[j].radius, 1500*gF.length, .4);
To:
for (int j = 0; j < gF.size(); j++) pl[i].setNuevaDireccion(gF[j].x, gF[j].y, gF[j].radius, 1500*gF.size(), .4);
but now I obtain this error "The type of expression must be an array type but it resolved to ArrayList"
any idea??
Batch from processing
[4 Replies]
12-Jun-2012 10:41 AM
Forum:
General Discussion
Hi all, can I execute commands like a batch? for example run an application command executed from processing?
How to change a tint()
[4 Replies]
10-Jun-2012 03:58 PM
Forum:
Programming Questions
Hi all, this is my first post :)
I have something like this in my sketch in the void draw:
PImage b;
b = loadImage("laDefense.jpg");
image(b, 0, 0); // Tint blue
tint(0, 153, 204);
image(b, 50, 0);
the image changes its possition etc etc etc and then I want to change the tint color of this image already printed...
How can I do it?
«Prev
Next »
Moderate user : chocolate.cklt
Forum