xxxxxxxxxx
72
function setup() {
createCanvas(400, 400);
}
function mouseClicked() {
save('selfPortrait.jpg')
}
function draw() {
background(100, 190, 245);
//hair behind head
noStroke()
fill('rgb(110,62,8)')
rect(80, 100, 200, 200)
//shirt
fill('maroon')
rect(10, 280, 380, 150, 100, 100, 0, 0)
//head
fill('#EABF86')
circle(200, 150, 220)
rect(160, 220, 80)
arc(200, 280, 100, 100, 0, PI)
//shirt collar
stroke('white')
strokeWeight(5)
arc(200, 280, 100, 100, 0, PI)
//hair
noStroke()
fill('rgb(154,93,26)')
rect(80, 100, 50, 250)
rect(270, 100, 50, 250)
arc(200, 100, 240, 150, PI, TWO_PI)
fill('maroon')
triangle(95, 351, 95, 330, 92, 354)
triangle(305, 351, 304, 335, 303, 352)
//hairline
fill('#EABF86')
arc(165, 100, 70, 20, PI, TWO_PI)
arc(235, 100, 70, 20, PI, TWO_PI)
//ears
circle(130, 170, 50)
circle(270, 170, 50)
//eyes
fill('white')
circle(165, 160, 40)
circle(235, 160, 40)
fill('olive')
circle(160, 160, 25)
circle(230, 160, 25)
fill('black')
circle(158, 160, 15)
circle(228, 160, 15)
fill('white')
circle(165, 160, 5)
circle(235, 160, 5)
fill('#EABF86')
arc(165, 145, 50, 20, PI, TWO_PI)
arc(235, 145, 50, 20, PI, TWO_PI)
//eybrows
stroke('rgb(154,93,26)')
noFill()
arc(165, 140, 50, 20, PI, TWO_PI)
arc(235, 140, 50, 20, PI, TWO_PI)
//shitty nose
fill('#DB9D4A')
noStroke()
ellipse(200, 200, 15, 5)
//mouth
stroke('maroon')
noFill()
arc(200, 225, 50, 20, TWO_PI, PI)
}