xxxxxxxxxx
43
function setup() {
createCanvas(200, 300);
}
function draw() {
background (100, 0, 100)
fill (255)
strokeWeight (9)
rect (15, 110, 90, 200)//body
strokeWeight (0)
// rect (110, 110, 90, 30)//arm
// strokeWeight (1)
ellipse (140, 125, 20, 20)//tatoo
line (160, 135, 160, 115)
line (170, 135, 170, 115)
strokeWeight (2)
stroke (100)
fill (20, 30, 100)
beginShape ();//head
vertex (20, 20)
vertex (100, 30)
vertex (80,70)
vertex (70, 80)
vertex (36, 80)
vertex (40, 115)
vertex (80, 115)
endShape (CLOSE)
//eyes
fill(255)
ellipse (50, 45, 20, 20)
ellipse (70, 45, 10, 10)
//pupils
point (55, 45)
point (72, 45)
}