float x=0; float y=100; float a=0; float z=1; float r=1; float g=1; float b=1; float rv=1; float gv=1; float bv=1; void setup() { size(400,400); background(255,255,255); ellipseMode(CENTER_DIAMETER); } void loop() { background(255,255,255); noStroke(); r=r+rv; g=g+gv; b=b+bv; if (b>255) bv=-1; else if (b<0) bv=1; if (g>255) gv=-1; else if (g<0) gv=1; if (r>255) rv=-1; else if (r<0) rv=1; window(-50,100, 20,20); window(0,200,50,50); } void window(float x,float y, float rad, float rad2) { fill(r+255,g,b); rect(x,y, 50,50); fill(r+240,g+10,b+30); rect(x+50,y, 50,50); fill(r+200,g+40,b+60); rect(x+100,y, 50,50); fill(r+160,g+50,b+90); rect(x+150,y, 50,50); fill(r+120,g+70,b+120); rect(x+200,y, 50,50); fill(r+80,g+90,b+150); rect(x+250,y, 50,50); fill(r+40,g+130,b+180); rect(x+300,y, 50,50); fill(r+20,g+180,b+210); rect(x+350,y, 50,50); fill(r,g+210,b+240); rect(x+400,y, 50,50); fill(r+240,g+240,b+255); rect(x+450,y, 50,50); fill(r+200,g+40,b+60); rect(x+500,y, 50,50); }