xxxxxxxxxx
51
function setup() {
createCanvas(400, 400);
}
function draw() {
noStroke()
background(220,random(0,255),random(0,255));
fill(0,0,0)
//ears
ellipse(90,102,137,140)
ellipse(310,102,137,140)
//basic face
ellipse(200,240,235,220)
fill(255,255,255)
ellipse(200,335,117,70)
ellipse(200,305,239,100)
ellipse(160,215,88,140)
ellipse(240,215,88,140)
ellipse(200,250,40,40)
//eyes
fill(0,0,0)
ellipse(177,215,31,74)
ellipse(223,215,31,74)
//mouse
fill(100,0,0)
ellipse(200,307,110,82)
fill(255,255,255)
ellipse(200,289,130,65)
//nose1
fill(255,0,0)
ellipse(200,339,47,18)
//test point for curve
stroke('black'); // Change the color
strokeWeight(3); // Make the points 3 pixels in size
//curve
fill(255)
bezier(163,260,178,245,222,245,237,260)
bezier(126,290,158,330,242,330,274,290)
//line
line(119,295,131,283)
line(281,295,269,283)
//nose2
noStroke()
fill(0,0,0)
ellipse(200,275,55,36)
}