let ampArray1 = [];
function setup() {
createCanvas(400, 400);
angleMode(DEGREES)
circleMask = createGraphics(128, 128);
}
function draw() {
noStroke()
translate(width/2,width/2)
background(255);
maxAmp = 20;
fill(166, 231, 247,90)
beginShape()
for (let i=-width/2; i <= width/2; i=i+ 10) {
y = 10*sin(frameCount+i/3)-3*cos(frameCount+4*i)+12*sin(frameCount+i)-90;
vertex(i,y)
}
vertex(width/2, height/2);
vertex(-width/2, height/2);
endShape(CLOSE);
fill(153, 202, 232,90)
beginShape()
for (let i=-width/2; i <= width/2; i=i+ 10) {
y = 12*sin(frameCount+i*2)-11*cos(frameCount-i)-50+5*sin(frameCount +i/2)-1*cos(frameCount+4*i);
vertex(i,y)
}
vertex(width/2, height/2);
vertex(-width/2, height/2);
endShape(CLOSE);
fill(121, 204, 224,90)
beginShape()
for (let i=-width/2; i <= width/2; i=i+ 10) {
y = 10*sin(frameCount+i)-15*cos(frameCount-i)-60+5*cos(frameCount +i)-1*cos(frameCount+4*i);
vertex(i,y)
}
vertex(width/2, height/2);
vertex(-width/2, height/2);
endShape(CLOSE);
fill(28, 80, 112,140)
beginShape()
for (let i=-width/2; i <= width/2; i=i+ 10) {
y = 10*cos(frameCount+i/2)-5*sin(frameCount-i)+-40+3*sin(frameCount +i);
vertex(i,y)
}
vertex(width/2, height/2);
vertex(-width/2, height/2);
endShape(CLOSE);
fill(255)
beginShape()
for (let i=0; i <= 180; i++) {
x = 150*cos(i)
y = 150*sin(i);
vertex(x,y)
}
vertex(-width/2,0)
vertex(-width/2, height/2);
vertex(width/2, height/2);
vertex(width/2,0)
endShape(CLOSE);
beginShape()
for (let i=180; i <= 360; i++) {
x = 150*cos(i)
y = 150*sin(i);
vertex(x,y)
}
vertex(width/2,0)
vertex(width/2, -height/2);
vertex(-width/2, -height/2);
vertex(-width/2,0)
endShape(CLOSE);
stroke(4, 112, 179);
strokeWeight(1)
noFill()
circle(0,0,340)
}