boolean state = true; void setup(){ size(500,500); background(255,255,255); fill(random(255), random(255),random(255)); }
void draw(){ if (state){ for (int i = 0 ; i <= 5;i++){ rect(i*100,0, 100*i,500); fill(random(255), random(255),random(255)); } } state = false; }
void mousePressed() { saveFrame("rect.png"); }