xxxxxxxxxx
63
function setup() {
createCanvas(520, 520);
}
function draw() {
if(mouseIsPressed)
{
saveCanvas();
}
background(163, 187, 236);
//Hair
noStroke();
fill(84, 53, 17);
arc(260, 260, 300, 380, QUARTER_PI + HALF_PI, QUARTER_PI, OPEN);
rect(110, 250, 300, 400);
print(mouseX, mouseY);
//Neck
fill(232, 190, 172);
rect(235, 360, 50, 55, 20);
//Face
noStroke();
fill(232, 190, 172);
ellipse(260, 255, 200, 260);
noStroke();
fill(84, 53, 17);
arc(300, 120, 150, 100, 0, PI + QUARTER_PI, CHORD);
//Eyebrows
stroke(21, 19, 19);
strokeWeight(7);
noFill();
arc(210, 230, 55, 10, PI, TWO_PI, OPEN);
arc(310, 230, 55, 10, PI, TWO_PI, OPEN);
//Eyes
strokeWeight(1);
fill(57, 36, 12);
ellipse(210, 260, 28, 35);
ellipse(310, 260, 28, 35);
noStroke();
fill(255);
ellipse(207, 252, 8, 8);
ellipse(306, 252, 8, 8);
//Nose & Mouth
fill(201, 130, 118);
triangle(260, 250, 270, 310, 250, 310);
//Hair (continued)
stroke(201, 130, 118);
strokeWeight(10);
line(250, 335, 270, 335);
//Shoulders & Shirt
noStroke();
fill(239, 246, 138);
rect(185, 395, 150, 220);
ellipse(190, 515, 160, 240);
ellipse(330, 515, 160, 240);
}