xxxxxxxxxx
196
function setup()
{
createCanvas(600, 600);
//create ellipse shape for face
fill(255,0,0);
//shoulder
arc(250,270,160,70,radians(180),radians(360))
fill(232, 190, 172);
//neck
arc(250,210,50,100,0,radians(180))
ellipse(250,120,170,200);
//white color for eyes
fill(255,255,255);
noStroke()
//left eye
//design the shape of the eye using two triangles and a quadrilateral shape
triangle(190,100,201,93,198,107);
quad(198,107,225,107,222,93,201,93)
triangle(225,107,222,93,230,100)
//draw lines with black stroke for the eyebrow
stroke(0,0,0);
line(190,100,201,93);
line(201,93,222,93);
line(222,93,230,100);
noStroke()
//right eye
triangle(310,100,299,93,302,107);
quad(299,93,278,93,275,107,302,107)
triangle(270,100,278,93,275,107)
stroke(0,0,0);
line(310,100,299,93);
line(299,93,278,93);
line(278,93,270,100);
//iris for right eye
fill(0,0,0);
ellipse(212,99,11);
ellipse(290,99,11);
//nose
noFill()
arc(250,140,15,20,0,radians(180));
line(242.5,140,250,100)
//mouth
noStroke()
fill(0,0,0)
arc(250,180,30,20,0,radians(180));
//eyebrows
rect(195,85,30,3)
rect(275,85,30,3)
//hair
stroke(0,0,0)
// line(275,30,280,15)
// line(270,30,275,15)
// line(272,30,277,15)
// line(268,30,273,15)
// line(265,30,270,15)
// line(263,30,268,15)
quad(310,20,200,20,195,45,305,45)
//ears
noStroke()
fill(232, 190, 172);
ellipse(165,117,30,40)
ellipse(335,117,30,40)
//neck
// triangle(250,220,200,240,300,240)
// //body
// rect(175,240,150,200)
// //hands
// quad(175,255,175,260,160,280,160,260)
//neck
//body
fill(255,0,0)
stroke(0,0,0)
//short sleeves of the shirt
quad(170,270,130,290,150,330,170,320)
quad(330,270,370,290,350,330,330,320)
noStroke()
fill(232, 190, 172);
//left hand
quad(135,300,80,330,95,350,145,318)
quad(80,330,101,350,106,396,90,406)
//right hand
quad(364,298,354,319,384,336,406,322)
quad(384,336,406,322,410,400,388,399)
//ball
fill(255,255,255)
stroke(0,0,0)
ellipse(145,370,100)
fill(0,0,0)
noStroke()
triangle(130,370,155,370,143,360)
quad(130,370,155,370,147,380,138,380)
stroke(0,0,0)
line(130,370,104,370)
line(104,370,95,360)
line(104,370,95,376)
line(155,370,180,355)
line(143,380,145,335)
line(145,335,156,320)
line(145,335,136,320)
line(147,380,167,410)
line(138,380,123,397)
line(123,397,108,401)
line(123,397,120,412)
//body
noStroke()
fill(255,0,0)
rect(170,270,160)
//right hand
}
function draw()
{
print(mouseX,mouseY);
}