xxxxxxxxxx
84
function setup() {
createCanvas(300, 300);
}
function draw(){
background('olive')
console.log(" mousex= ",mouseX," mousey= ",mouseY)
// head
fill(104,39,25)
ellipse(150,150,230,245)
//hair
strokeWeight(10);
bezier(73,57,58,74,86,86,66,89);
push()
translate(20,-10);
bezier(73,57,58,74,86,86,66,89);
translate(30,-10);
bezier(73,57,58,74,86,86,66,89)
translate(30,-10);
bezier(73,57,58,74,86,86,66,89);
translate(30,5);
bezier(73,57,58,74,86,86,66,89);
translate(30,15);
bezier(73,57,58,74,86,86,66,89);
pop()
//eyes
strokeWeight(6)
fill(254, 252, 252)
ellipse(93,125,40,30)
ellipse(190,122,40,30)
fill(7,1,0)
ellipse(94,124,10,10)
ellipse(190,122,10,10)
//brow
fill(7,1,0)
rect(70,88,50,10)
rect(158,88,50,10)
//nose
strokeWeight(3)
fill(104,39,25)
triangle(138,131,115,159,138,159)
//mouth
fill(255,0,0)
quad(91,192,132,197,175,192,136,222)
//facialhair
fill(7,1,0)
push()
translate(10,-5)
bezier(48,207,42,225,25,236,27,251)
translate(10,20)
bezier(48,207,42,225,25,236,27,251)
translate(10,20)
bezier(48,207,42,225,25,236,27,251)
translate(10,5)
bezier(48,207,42,225,25,236,27,251)
translate(10,5)
bezier(48,207,42,225,25,236,27,251)
translate(10,5)
bezier(48,207,42,225,25,236,27,251)
translate(10,5)
bezier(48,207,42,225,25,236,27,251)
translate(10,5)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
translate(10,-3)
bezier(48,207,42,225,25,236,27,251)
pop()}