xxxxxxxxxx
81
function setup() {
createCanvas(windowWidth, windowHeight);
strokeWeight(2);
}
function draw() {
background(209, 242, 0);
let n = 8
let w = width/n
let h = height/n
push();
translate(w/2,h/2);
for(let i=0; i<n; i++){
for(let a=0; a<n; a++){
push()
translate(i*w,a*h)
fill(234, 85, 154);
stroke(11, 128, 64)
strokeWeight(20)
ellipse(0,0,sin((frameCount+(i*a))*0.02)*200)
pop();
}
}
pop();
push();
translate(w/2,h/2);
for(let i=0; i<n; i++){
for(let a=0; a<n; a++){
push()
translate(i*w,a*h)
fill(255, 94, 53);
stroke(217, 24, 165)
strokeWeight(15)
ellipse(0,0,sin((frameCount+(i*a))*0.04)*150)
pop();
}
}
pop();
push();
translate(w/2,h/2);
for(let i=0; i<n; i++){
for(let a=0; a<n; a++){
push()
translate(i*w,a*h)
fill(0, 149, 199);
stroke(209, 242, 0)
strokeWeight(8)
ellipse(0,0,sin((frameCount+(i*a))*0.08)*100)
pop();
}
}
pop();
push();
translate(w/2,h/2);
for(let i=0; i<n; i++){
for(let a=0; a<n; a++){
push()
translate(i*w,a*h)
fill(0, 149, 199);
stroke(209, 242, 0)
strokeWeight(4)
ellipse(0,0,sin((frameCount+(i*a))*0.12)*50)
pop();
}
}
pop();
}