We are about to switch to a new forum software. Until then we have removed the registration on this forum.
int changer;
int changeg;
int changeb;
void draw(){
int r=int(random(0,255));
int g=int(random(0,255));
int b=int(random(0,255));
float[] [] [] colors = new float[r][g][b];
for (int x = 0; x < width; x+=10) {
for (int y = 0; y < height; y+=10) {
noStroke();
fill(r,g,b);
rect(x,y,10,10);
}
}
}
void setup(){
size(400,400);
}
I'm trying to get this program to be a checkerboard with random fill values.
Answers
but in variables
see other thread
close this one
http://forum.processing.org/two/discussion/10362/help-with-a-multidimensional-array