xxxxxxxxxx
21
function setup() {
createCanvas(windowWidth, windowHeight);
noStroke();
}
function draw() {
background(255);
fill(0, 100, 100);
for (let i = 0; i < 5; i++) {
push();
translate(mouseX, mouseY);
rotate(map(sin(frameCount/10000), -1, 1, 0, 360));
ellipse(
0+(sin(frameCount/(i+15))*(i+30)),
0+(i*50),
20,
20);
pop();
}
}