xxxxxxxxxx
145
function setup() {
createCanvas(windowWidth,windowHeight);
strokeWeight(2);
}
function draw() {
background(255, 94, 53);
let n =8;
let w = width/n;
let h =height/n;
strokeWeight(2)
// bottom
// rect1
fill(217, 24, 165)
rect(+ sin(frameCount*0.01)*500,400,900,100)
// oval2blue
{fill(0, 149, 199)
rect(+ sin(frameCount*0.03)*200,600,200,30,60)}
// oval4yellow
{fill(209, 242, 0)
rect(+ sin(frameCount*0.03)*300,380,100,55,90)}
// square5blue
{fill(0, 149, 199)
rect(1350,sin(frameCount*0.03)*200,100)}
// rect12pink
fill(217, 24, 165)
rect(+ sin(frameCount*0.01)*300+1080,600,900,220)
// rect12yellow
fill( 209, 242, 0)
rect(1080,+ sin(frameCount*0.01)*-400,220,600)
// circlexxx
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(11, 128, 64);
ellipse(0,0, sin((frameCount + (i*a))*0.04) * 70);
pop();
}
}
pop();
// top
// rect2
fill(217, 24, 165)
rect(155,+ sin(frameCount*0.08)*100,15,200)
// oval3yellow
{fill(209, 242, 0)
rect(500,+ sin(frameCount*0.03)*200,100,300,80)}
// square3pink
fill(217, 24, 165)
rect(550,+ sin(frameCount*0.03)*400,80,80)
// longoval2blue
{fill(0, 149, 199)
rect(+ sin(frameCount*0.03)*800,80,600,20,60)}
// square3blue
{fill(0, 149, 199)
rect( sin(frameCount*0.03)*500+900,450,300)}
// oval3yellow
{fill(209, 242, 0)
rect(1550,+ sin(frameCount*0.05)*400+800,15,400)}
// rect3yellow
fill(209, 242, 0)
rect(210,+ sin(frameCount*0.03)*400+500,100,900)
// oval3blue
{fill(0, 149, 199)
rect(200,+ sin(frameCount*0.03)*-300,40,100,100)}
// oval1pinkdown
{fill(217, 24, 165)
rect(1060,+ sin(frameCount*0.08)*250,60,200,100)}
// longoval3pink
{fill(217, 24, 165)
rect(+ sin(frameCount*0.04)*600+600,700,300,20,60)}
// circlexxx2
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(217, 24, 165);
ellipse(0,0, sin((frameCount+(i*a))*0.02)*45)
pop();
}
}
pop();
// circlexxx3
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(209, 242, 0);
ellipse(0,0, sin((frameCount+(i*a))*0.01)*25)
pop();
}
}
pop();
}