xxxxxxxxxx
27
let step = 0.0;
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(220);
for (var i = 0; i < map(sin(frameCount/10), -1, 1, 0, 200); i++){
fill(map(noise(step), 0, 1, 100, 150), 16, 150);
angleMode(DEGREES);
rotate(map(sin(frameCount), -1, 1, 0.01, 0.5));
if (i % 2 == 0){
ellipse(width-i*10, height/2-i*10, 100, 100);
} else if (i % 2 == 1){
ellipse(i*10, height/2+i*10, 100, 100);
}
ellipse(width-i, height/2-i, 100, 100);
step += 0.001;
}
}