xxxxxxxxxx
49
function setup() {
createCanvas(400,400);
}
function draw() {
background(0, 128, 255);
push();
stroke(255, 255, 255);
strokeWeight(12);
fill(255, 245, 0);
ellipse(200, 200, 300, 300);
pop();
// left eye
push();
stroke(255, 255, 255);
fill(255, 255, 255);
ellipse(150, 150, 50, 75);
pop();
push();
stroke(255, 255, 255);
fill(mouseX,mouseY,10,300);
circle(150, 150, 20);
pop();
// right eye
push();
stroke(255, 255, 255);
fill(255, 255, 255);
ellipse(250, 150, 50, 75);
pop();
push();
stroke(255, 255, 255);
fill(mouseX,mouseY,10,300);
circle(250, 150, 20);
pop();
// mouth
push();
noFill();
stroke(255, 255, 255);
strokeWeight(18);
arc(200, 240, mouseX/2, mouseY/2, 0, PI);
pop();
}