xxxxxxxxxx
121
/* self portrait v1
by Michal Shahaf
09.19.2022*/
function setup() {
createCanvas(400, 600);
background("skyBlue");
//sun
fill("yellow");
noStroke();
circle(330, 70, 100);
//cloud
fill("white");
circle(30, 80, 40);
circle(65, 80, 70);
circle(100, 80, 40);
//hair
fill("black");
rect(80, 220, 240, 300);
//neck
fill("tan");
rect(185, 410, 25, 30);
//head
fill("NavajoWhite");
ellipse(200, 280, 220, 270);
//chicks
fill("pink");
circle(130, 310, 40);
circle(130 + 145, 310, 40);
//nose
fill("tan");
circle(202, 315, 20);
//mouth
stroke("black");
noFill();
strokeWeight(3);
arc(203, 360, 20, 20, 39, PI + QUARTER_PI, OPEN);
arc(213, 370, 13, 13, 31, PI + QUARTER_PI, OPEN);
//glasses
fill("black");
rect(134, 240, 60, 40);
rect(134 + 80, 240, 60, 40);
strokeWeight(9);
line(190, 260, 220, 260);
line(135, 260, 95, 235);
line(135 + 135, 260, 305, 235);
//shine
strokeWeight(6);
stroke("white");
line(144, 247, 183, 270);
line(144, 257, 174, 275);
line(144 + 80, 247, 183 + 80, 270);
line(144 + 80, 257, 174 + 80, 275);
//hat
fill("DarkOrange");
noStroke();
quad(60, 220, 340, 220, 300, 180, 100, 180);
fill("orange");
quad(130, 140, 270, 140, 300, 180, 100, 180);
//shirt
fill("DarkMagenta");
rect(110, 440, 170, 200, 20);
//left hands
fill("tan");
rect(78, 470, 35, 80);
//right hands
fill("NavajoWhite");
rect(65 + 213, 470, 35, 130);
//sleevs
fill("DarkMagenta");
rect(75, 440, 40, 40, 7);
rect(65 + 210, 440, 40, 40, 7);
//left arm
noStroke();
fill("NavajoWhite");
rect(77, 510, 50, 40, 5);
//cup
fill("white");
quad(120, 570, 170, 570, 190, 430, 100, 430);
fill("tan");
quad(125, 565, 165, 565, 180, 460, 111, 460);
fill("darkGreen");
quad(100, 430, 190, 430, 200, 424, 90, 424);
//straw
strokeWeight(12);
stroke("green");
line(145, 424, 155, 380);
line(155, 380, 201, 375);
//logo
fill("green");
circle(145, 490, 30);
//fingers
strokeWeight(2);
stroke("Sienna");
fill("NavajoWhite");
ellipse(130, 545, 40, 15);
ellipse(130, 535, 40, 15);
ellipse(130, 525, 40, 15);
ellipse(130, 515, 40, 15);
}