xxxxxxxxxx
57
function setup() {
createCanvas(400, 400);
}
function draw() {
background(0,255,255);
strokeWeight(0.5);
stroke(0);
fill(245,214,175);
ellipse(100,190,30,60); //left ear
ellipse(300,190,30,60); //right ear
noStroke();
rect(150, 300, 100, 50); //neck
stroke(0);
fill(245,214,175); //face colour
ellipse(200, 180, 200, 275); //head
fill(255);
ellipse(160, 160, 40, 23); //left eye
ellipse(240, 160, 40, 23); //right eye
fill(149, 69, 53);
ellipse(240, 160, 20, 20); //right pupil
fill(149, 69, 53);
ellipse(160, 160, 20, 20); //left pupil
fill(0);
ellipse(240, 160, 12, 12); //right pupil
fill(0);
ellipse(160, 160, 12, 12); //left pupil
fill(227,93,106);
ellipse(200, 265, 80, 30); //lips
fill(0);
ellipse(200, 265, 80, 20); //mouth
fill(255);
ellipse(200, 258, 66, 6); //teeth
fill(245,214,175);
bezier(200, 200, 235, 235, 200, 235, 200, 230); //nose shape
fill(0);
ellipse(205, 230, 9, 3) //nostril
rect(142,136,35,7,5); //left eyebrow
rect(222,136,35,7,5); //right eyebrow
fill(0);
noStroke();
rect(50, 350, 300, 100, 20); // t shirt
stroke(0);
fill(0);
for(let i = 0; i<170; i=i+10){
ellipse(120+i, 100, 20, 20); //hairline
}
arc(200, 100, 180, 140, PI, TWO_PI); //top of hair
triangle(110, 100, 125, 100, 105, 150) //side hair
triangle(290, 100, 280, 100, 295, 150) //side hair
fill(245,214,175);
noStroke()
arc(200, 350, 100, 20, 0, PI);
stroke(0);
line(150, 300, 150, 350);
line(250, 300, 250, 350);
}