function setup(){
createCanvas(600,600)
background(200)
}
function draw(){
beginShape();
fill(253,245,230);
stroke(0);
vertex(100,200);
vertex(100,210);
vertex(90,220);
vertex(115,229);
vertex(140,220);
vertex(130,210);
vertex(130,198);
endShape();
//衣服
beginShape();
fill(255,120,120);
stroke(0);
vertex(90,220);
vertex(115,229);
vertex(140,220);
vertex(150,230);
vertex(162,223);
vertex(192,300);
vertex(40,300);
vertex(71,221);
vertex(80,230);
vertex(90,220);
endShape(CLOSE);
//头发
stroke(0, 0, 0);
fill(0);
beginShape();
vertex(90,190);
vertex(100,190);
vertex(100,210);
vertex(80,230);
endShape(CLOSE);
beginShape();
vertex(150,190);
vertex(130,190);
vertex(130,210);
vertex(150,230);
endShape(CLOSE);
line(100,210,80,230);
line(130,210,150,230);
//胳膊
line(90,247,90,300);
line(146,247,146,300);
//头发
applyMatrix(1, 0, 0, 1, 0,-10);
fill(0,0,0);
bezier(120,105, 180,105, 190, 230, 150, 240);
bezier(120,105, 20,105, 60, 230, 80, 240);
beginShape();
vertex(80,120);
vertex(70,143);
vertex(155,143);
vertex(120,105);
endShape(CLOSE);
//脸
push();
fill(250,240,230);
stroke(0, 0, 0);
applyMatrix(1, 0, 0, 1, 0,10);
bezier(155,140, 155,140, 178, 200, 110, 200);
bezier(70,140, 70,140, 60,200,110, 200);
beginShape();
fill(253,245,230);
noStroke();
vertex(120,105);
vertex(70,143);
vertex(110,200);
vertex(155,143);
endShape(CLOSE);
pop();
//睫毛
bezier(95,163,97,165,98,165,100,163);
bezier(138,163,140,165,141,165,143,163);
//眼睛
fill(0);
stroke(0);
ellipse(92,170,10,18);
ellipse(135,170,10,18);
//高光
fill(255,255,255);
noStroke();
triangle(94,170,98,170,98,173);
triangle(137,170,141,170,141,173);
//嘴巴
fill(205,38,38);
triangle(108,192,118,192,113,197);
//刘海
fill(0);
stroke(0, 0, 0);
rect(70, 140, 87, 20,2);
triangle(120,105,60,150,150,150);
stroke(253,245,230);
line(90,140,90,160);
line(120,140,120,160);
line(150,147,150,160);
//蝴蝶结
applyMatrix(1, 0, 0, 1, -40,10);
fill(255,0,0);
stroke(1);
triangle(145,220,145,237,155,229);
triangle(165,220,165,237,155,229);
rect(153,225, 5, 7,2);
}
console