xxxxxxxxxx
31
let gap=10;
let cirNum=40;
let cirSize=20;
let angle=0;
function setup() {
createCanvas(windowWidth, windowHeight);
angleMode(degrees);
}
function draw() {
background('black');
push();
translate(width/2,height/2);
rotate(angle);
angle = map(frameCount/10,0,width,-45,45);
noFill();
stroke('white');
strokeWeight(1);
for (let hi=0; hi < cirNum; hi++){
arc (0, 0, cirSize+gap*hi, cirSize+gap*hi,angle*hi,360-angle);
}
pop();
}