void setup() { size (500, 500); smooth(); } void draw() { background(0); noFill(); int d=((millis()/80) % 1000)*4; stroke(random(0), random(0), random(255), 20); circle(width/2, height/2, d*2); noFill(); stroke(random(255), random(0), random(0), 20); circle2(width/3, height/3, d*2); noFill(); stroke(random(0), random(255), random(0), 20); circle3(width/3, height-165, d*2); noFill(); stroke(random(255), random(0), random(0), 20); circle4(width-160, height-165, d*2); noFill(); stroke(random(0), random(255), random(0), 20); circle5(width-160, height/3, d*2); //noLoop(); } void circle(float x,float y,float r) { if(r>15) { ellipse(x,y,r,r); circle(x,y,r/2); circle(x,y,r/3); circle(x,y,r/4); circle(x,y,r/5); } } void circle2(float x2,float y2,float r2) { if(r2>15) { ellipse(x2,y2,r2,r2); circle(x2,y2,r2/2); circle(x2,y2,r2/3); circle(x2,y2,r2/4); circle(x2,y2,r2/5); } } void circle3(float x3,float y3,float r3) { if(r3>15) { ellipse(x3,y3,r3,r3); circle(x3,y3,r3/2); circle(x3,y3,r3/3); circle(x3,y3,r3/4); circle(x3,y3,r3/5); } } void circle4(float x4,float y4,float r4) { if(r4>15) { ellipse(x4,y4,r4,r4); circle(x4,y4,r4/2); circle(x4,y4,r4/3); circle(x4,y4,r4/4); circle(x4,y4,r4/5); } } void circle5(float x5,float y5,float r5) { if(r5>15) { ellipse(x5,y5,r5,r5); circle(x5,y5,r5/2); circle(x5,y5,r5/3); circle(x5,y5,r5/4); circle(x5,y5,r5/5); } }