xxxxxxxxxx
25
function setup() {
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
radius=10;
step=20;
}
function draw() {
background(220);
translate(width/2, height/2);
noFill();
strokeWeight(1);
stroke(200);
for(i=1;i<=40;i++) {
ellipse(0, 0, step*i);
}
stroke(100);
for(i=40; i>0; i--) {
rotate(sin(frameCount)*10)
ellipse(pow(-1, i)*step/2*i, 0, radius);
}
}