xxxxxxxxxx
65
function setup() {
//set canvas: passport size
createCanvas(410, 530);
//white background
background(255);
//hair
stroke(51);
//line(80, 110, 330, 110);
//line(50,340,340,320);
fill(51);
quad(80, 110, 50, 340, 360, 340, 330, 110);
ellipseMode(CENTER);
circle(142.5, 130.2, 130.5);
circle(267.5, 130.2, 130.5);
//bodice
fill(255);
stroke(0);
strokeWeight(3);
quad(140, 265, 70, 530, 340, 530, 270, 265);
//head
circle(205, 230, 220);
///face
//smile
fill(255);
arc(205, 230, 100, 100, (1 / 4) * PI, (3 / 4) * PI);
//eyes
stroke(0);
fill(0);
//circle(165,200,5);
//circle(245,200,5);
line(165, 216, 165, 222);
line(245, 216, 245, 222);
//eyebrows
line(150, 195, 170, 193);
line(240, 193, 260, 195);
}
function draw() {
//draw pin after a certain time
if (frameCount >= 20) {
stroke("#E1F050");
strokeWeight(5);
triangle(125, 130, 130, 170, 150, 150);
///arm and hand
stroke(0);
strokeWeight(3);
//arm
line(300, 420, 362, 340);
//hand
line(362, 340, 360, 287);
line(362, 340, 380, 291);
fill(255);
circle(362, 340, 45);
}
}