xxxxxxxxxx
110
function setup() {
createCanvas(400, 400);
background(220);
//head
fill(230, 143, 57);
strokeWeight(3);
ellipse(200, 200, 250, 210);
//eyes
fill(255);
ellipse(150, 175, 75, 75);
ellipse(250, 175, 75, 75);
//pupils
fill(0);
ellipse(150, 155, 25, 25);
ellipse(270, 175, 25, 25);
//hair
stroke(30, 214, 13);
strokeWeight(10);
line(30, 135, 200, 95);
line(370, 135, 200, 95);
line(30, 150, 200, 95);
line(370, 150, 200, 95);
line(30, 165, 200, 95);
line(370, 165, 200, 95);
//nose
stroke(0);
strokeWeight(3);
noFill();
arc(200, 220, 30, 30, 0, PI);
//mouth
noStroke(0);
fill(219, 13, 13);
ellipse(200, 275, 70, 40);
//tooth
rectMode(CENTER);
fill(255);
rect(200, 265, 17, 20);
stroke(0);
strokeWeight(2)
fill(0)
line(200, 255, 200, 268);
//freckles
fill(80, 7, 102)
ellipse(110, 230, 10, 10);
ellipse(130, 230, 10, 10);
ellipse(120, 240, 10, 10);
ellipse(270, 230, 10, 10);
ellipse(290, 230, 10, 10);
ellipse(280, 240, 10, 10);
//shirt
rectMode(CENTER);
stroke(26, 180, 214);
strokeWeight(4);
fill(112, 65, 65);
rect(200, 350, 175, 100);
//hat
rectMode(CENTER);
stroke(214, 38, 15);
strokeWeight(4);
fill(26, 26, 214);
rect(200, 70, 180, 100);
//overalls
strokeWeight(8);
line(150, 300, 150, 400);
line(250, 300, 250, 400);
strokeWeight(3);
ellipse(150, 300, 15, 15)
ellipse(250, 300, 15, 15)
ellipse(150, 400, 15, 15)
ellipse(250, 400, 15, 15)
//ears
fill(247, 167, 7);
stroke(0);
strokeWeight(3)
ellipse(75, 200, 20, 50);
ellipse(325, 200, 20, 50);
//arms
stroke(230, 143, 57)
strokeWeight(8)
line(112, 355, 25, 320);
line(290, 355, 375, 320);
}
function draw() {
print(mouseX, mouseY);
}