xxxxxxxxxx
135
function setup() {
createCanvas(400, 400);
frameRate(10);
}
function draw()
{
background('orange');
//back hair
c = color ('black');
fill(c);
rect(110, 66, 180, 350);
ellipse(200,66,179,80);
//ears
c = color('#E3BC9A');
fill(c);
ellipse(115, 188, 15, 35);
ellipse(285, 188, 15, 35);
//earings
c = color('##C0C0C0');
fill(c);
rect(113,205,7,15);
rect(283,205,7,15);
//neck
c = color('#E3BC9A');
fill(c);
rect(163,269,75,70);
//shoulders
strokeWeight(0);
rect(90,326,220,80);
//shirt
c = color('#A020F0');
fill(c);
rect(90,326,55,80);
rect(255,326,55,80);
rect(142,355,130,80);
ellipse(91,396,40,140);
ellipse(309,396,40,140);
c = color('#2A0A5B');
fill(c);
rect(114,366,2,70);
rect(290,366,2,70);
//necklace
c = color('white');
fill(c);
ellipse(153,332,10,10);
ellipse(159,342,10,10);
ellipse(245,331,10,10);
ellipse(240,341,10,10);
ellipse(169,350,10,10);
ellipse(183,356,10,10);
ellipse(232,351,10,10);
ellipse(221,355,10,10);
ellipse(195,360,10,10);
ellipse(207,360,10,10);
//face
strokeWeight(2);
c = color('#E3BC9A');
fill(c);
ellipse(200, 180, 165, 208);
//nose
strokeWeight(0);
c = color('#EDBB99');
fill(c);
triangle(202, 166, 202, 203, 190, 202);
c = color('#E59866');
fill(c);
triangle(202, 166, 213, 203, 190, 202);
c = color('brown');
fill(c);
ellipse(197, 200, 7, 4);
ellipse(207, 200, 7, 4);
//lips
c = color('#EC7063');
fill(c);
ellipse(200,237,50,18);
strokeWeight(2);
line( 176, 237, 224, 237);
//eyebrows
strokeWeight(5);
line( 220, 130, 250, 130);
line(250, 130, 260, 135);
line (180, 130, 150, 130);
line(150, 130, 140, 135);
//eyes
strokeWeight(2);
c = color('white');
fill(c);
ellipse(165, 150,28, 13);
ellipse(235,150, 28, 13);
c = color('brown');
fill(c);
ellipse(165, 151,10, 10);
ellipse(235,151, 10, 10);
c = color('black');
fill(c);
ellipse(165, 151,7, 7);
ellipse(235,151, 7, 7);
c = color ('white');
fill(c);
ellipse(163,149,5,5);
ellipse(233,149,5,5);
//eyelashes
strokeWeight(1);
line(162,143,161,135);
line(162,143,155,136);
line(235,143,240,135);
line(235,143,235,135);
//hair
c = color ('black');
fill(c);
triangle(200, 71, 116, 145, 124, 67);
triangle(200, 71, 284, 145, 282, 67);
//to see coordinates on the grid
c = color ('white');
fill(c);
text("(" + mouseX + ", " + mouseY + ")", mouseX, mouseY);
stroke(0);
noFill();
}