xxxxxxxxxx
128
function setup() {
createCanvas(500, 650);
}
function draw() {
console.log(mouseX, mouseY);
background(207, 207, 207);
fill(255, 184, 97);
strokeWeight(0);
//face
ellipse(220, 220, 130, 300);
//L eye
fill(161, 161, 161);
ellipse(190, 190, 35, 20);
//R eye
fill(161, 161, 161);
ellipse(250, 190, 35, 20);
//L eyebrow
// Style the shape.
stroke(209, 136, 46)
noFill();
strokeWeight(1);
// Start drawing the shape.
beginShape();
// Add the first control point.
curveVertex(171, 178);
// Add the anchor points.
curveVertex(206, 177);
curveVertex(170, 178);
// Add the second control point.
curveVertex(170, 235);
// Stop drawing the shape.
endShape();
//R eyebrow
// Style the shape.
stroke(209, 136, 46)
noFill();
strokeWeight(1);
// Start drawing the shape.
beginShape();
// Add the first control point.
curveVertex(171, 178);
// Add the anchor points.
curveVertex(266, 177);
curveVertex(230, 178);
// Add the second control point.
curveVertex(170, 235);
// Stop drawing the shape.
endShape();
strokeWeight(0);
//ear L
fill(255, 184, 97);
ellipse(150, 220, 35, 100);
//ear r
fill(255, 184, 97);
ellipse(290, 220, 35, 100);
//NOSE
fill(255, 150, 97);
rect(210, 210, 20, 80);
//Mouth
fill(255, 150, 97);
ellipse(220, 312, 40, 15);
//hair L
fill(115, 68, 17)
beginShape();
vertex(213, 65);
vertex(182, 94);
vertex(165, 134);
vertex(158, 170);
endShape();
//hair R
fill(115, 68, 17)
beginShape();
vertex(212, 68);
vertex(250, 78);
vertex(260, 88);
vertex(280, 161);
endShape();
//neck
fill(255, 184, 97);
rect(200, 359, 40, 200);
//left wall
fill(130, 123, 116);
rect(0, 0, 40, 650);
//leftshirt
fill(54, 48, 41);
triangle(67, 650, 216, 650, 200, 500);
//right shirt
fill(54, 48, 41);
triangle(380, 650, 216, 650, 240, 500);
//whiteshirt
fill(255, 255, 255);
triangle(200, 500, 216, 650, 240, 500);
}