xxxxxxxxxx
35
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);
square(0,0,sin((frameCount+(i*a))*0.09)*500)
pop();
}
}
pop();
for(let i=0; i<10; i++){
fill(0, 149, 199);
circle(900,450,200+ sin((frameCount+i*4)*0.1)*400)
fill(234, 85, 154)
circle(900,450,+ sin(frameCount*0.03)*200)
}
}