xxxxxxxxxx
85
zfunction setup() {
createCanvas(600, 570);
}
function draw() {
background("pink");
//var x = mouseX
//var y = mouseY
//clothes
fill("#3d82ed");
// rect(280, 405, 100, 200, 50, 35, 10, 10); //right
//rect(220, 390, 100, 200, 50, 35, 10, 10);//left
//Hair
fill("black");
arc(300, 330, 240, 299, QUARTER_PI + HALF_PI, QUARTER_PI, OPEN);
fill("white");
arc(300, 250, 250, 140, QUARTER_PI + HALF_PI, QUARTER_PI, OPEN);
//fill ("black");
//rect(220, 200, 180, 230, 30, 30, 30, 50);
//neck
fill("#fff0db");
rect(283, 380, 35, 45, 10, 10);
//Ears
ellipse(211, 315, 40, 50, 0);
ellipse(390, 315, 40, 50, 0);
//Head
noStroke();
fill("#fff0db");
ellipse(300, 300, 183, 200);
//Hair 2
fill("white");
arc(300, 220, 100, 70, QUARTER_PI + HALF_PI, QUARTER_PI, OPEN);
//eye 1
fill("black");
circle(265, 280, 25);
fill("white");
circle(270, 274, 10);
fill("white");
circle(259, 286, 7);
//eye 2
fill("black");
circle(340, 280, 25);
fill("white");
circle(345, 274, 10);
fill("white");
circle(334, 286, 7);
//Mouth
fill("#ff4760");
arc(300, 350, 40, 50, 0, PI);
//Nose
fill("#ff4760");
ellipse(300, 315, 10, 8);
//Eyebrows
fill("white");
arc(265, 263, 35, 15, PI, TWO_PI, OPEN);
arc(340, 263, 35, 15, PI, TWO_PI, OPEN);
//clothes
fill("#3d82ed");
rect(223, 420, 150, 200, 20);
//White pocket
fill("white");
rect(243, 460, 48, 50, 10);
}