// Yinjie Tian
// yinjiet
// Section D
// Project 01
function setup() {
createCanvas(600, 600);
background(180);
}
function draw() {
//Background
stroke(0);
fill(250);
rect(80, 50, 80, 550);
rect(110, 80, 140, 520);
rect(300, 100, 200, 500);
rect(160, 170, 300, 430);
rect(400, 200, 200, 400);
//Neck
noStroke();
fill(230,214,169);
quad(240, 310, 235, 370, 320, 370, 315, 310);
//Ears
stroke(240,224,179);
fill(240,224,179);
rect(195, 240, 20, 40, 10);
rect(340, 240, 20, 40, 10);
//Face
stroke(255,244,189);
fill(255,244,189);
strokeWeight(3);
beginShape();
vertex(210, 270);
vertex(210, 310);
vertex(250, 335);
vertex(310, 335);
vertex(340, 310);
vertex(340, 225);
vertex(215, 225);
endShape();
//Hair
stroke(0);
fill(0);
strokeWeight(4);
beginShape();
vertex(190, 220);
vertex(205, 150);
vertex(270, 125);
vertex(338, 150);
vertex(360, 218);
vertex(342, 235);
vertex(330, 235);
vertex(290, 225);
vertex(250, 235);
vertex(217, 230);
vertex(210, 230);
endShape();
//Glasses
stroke(225, 215, 0);
strokeWeight(3);
fill(255);
rect(220, 240, 45, 40, 15);
rect(288, 240, 45, 40, 15);
line(265, 250, 288, 250);
//Nose
stroke(0);
strokeWeight(2);
line(275, 280, 270, 300);
line(270, 300, 275, 300);
//Mouth
noStroke();
fill(290,214,159);
ellipse(290, 320, 30, 10);
//Jacket
stroke(0, 0, 0);
fill(0, 0, 0);
strokeWeight(4);
beginShape();
vertex(150, 365);
vertex(90, 480);
vertex(90, 600);
vertex(430, 600);
vertex(490, 480);
vertex(410, 365);
endShape();
//Pocket
stroke(255,165,0);
rect(190, 450, 50, 60);
}
In the self portrait project, I worked on the shape of the face first and then move down to glasses, nose, mouth, neck and the jacket. The blocks at the background symbolize that I’m an architecture student. The most frequent shape commands that were being used were “quad”, “rect”, “ellipse”, “line”, “beginshape”, and etc…