xxxxxxxxxx
42
function setup() {
createCanvas(400, 400);
}
function draw() {
background(199, 177, 240);
noStroke()
let x = width/2
let y = height/2
fill(50 * cos(frameCount/ 10) + 150, 200, 200)
ellipse(x, y + 20, 200, 300)
//face
fill(181, 255, 222)
ellipse(x, y, 200, 200)
ellipse(x-60,y-90,20,50)
ellipse(x+60,y-90,20,50)
//eyes
fill("white")
ellipse(x+40 + 10 * noise(frameCount/10),y,50,20)
ellipse(x-40 + 10 * noise(frameCount/10),y,50,20)
//pupils
fill(150)
ellipse(x+40 + 10 * noise(frameCount/10),y,20,20)
ellipse(x-40 + 10 * noise(frameCount/10),y,20,20)
//mouth
let mouthWidth = 20 * cos(frameCount/30) + 100;
fill(150)
rect(x-mouthWidth/2,y+30,mouthWidth,5)
fill(181, 255, 222)
rect(x, y + 80, 30, 200)
ellipse(x,y + 250,250,200)
fill(50 * cos(frameCount/ 10) + 150, 200, 200)
rect(x - 50, y - 100, 100, 60)
}