xxxxxxxxxx
54
function setup() {
createCanvas(400, 400);
}
function draw() {
background(168, 216, 255);
noStroke();
//Arms
fill(215, 182, 165);
rect(130, 180, 18, 80, 10);
rect(252, 180, 18, 80, 10);
//Shirt
fill(255, 255, 255);
rect(150, 150, 100, 120, 10);
rect(225, 150, 50, 50, 20);
rect(125, 150, 50, 50, 20);
//Scarf
fill(147, 112, 219);
ellipse(200, 100, 100, 140);
//Face
fill(215, 182, 165);
ellipse(200, 100, 80, 100);
//Glasses
noFill();
stroke(0, 0 , 0);
rect(165, 80, 30, 20, 5);
line(195, 90, 205, 90);
rect(205, 80, 30, 20, 5);
line(180, 90, 185, 90);
line(215, 90, 220, 90);
//Smile
fill(255, 255, 255);
arc(200, 120, 30, 20, 0, PI, CHORD);
//Pants
noStroke();
fill(66, 93, 140);
rect(155, 270, 40, 80, 10);
rect(205, 270, 40, 80, 10);
//Belt
fill(147, 112, 219, 250);
stroke(0);
rect(150, 265, 100, 20);
line(150, 275, 250, 275);
}