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)); } } for (int i = 0 ; i <= 5;i++){ for (int z = 0 ; z <= 5;z++){ ellipse(i*100,z*100, 50, 50); } }
state = false; }
void mousePressed() { saveFrame("image.png"); }