# Brandon Darreff – Project-01-Face

``````// Brandon Darreff

// Section A (Tuesdays 9:00)

// bdarreff@andrew.cmu.edu

// Project-01

function setup() {
createCanvas(400, 550);
background(186, 212, 126);
}

function draw() {
// background triangles
fill(211, 156, 93);
stroke(255);
triangle(0, 550, 0, 200, 175, 550);
triangle(0, 0, 0, 100, 400, 0);
triangle(400, 75, 400, 550, 300, 550);

// left eyebrow
fill(36, 107, 104);
strokeWeight(0.5);
stroke(255);
beginShape();
vertex(140, 200);
endShape(CLOSE);
// right eyebrow
beginShape();
vertex(291, 268);
endShape(CLOSE)

// left eye
fill(255);
stroke(100);
strokeWeight(0.5);
beginShape();
vertex(150, 220);
endShape(CLOSE);
// right eye
beginShape();
vertex(235, 255);
endShape(CLOSE);

// left iris
fill(36, 107, 104);
stroke(0);
strokeWeight(1);
ellipse(167, 233, 17, 17);
// right iris
ellipse(252, 268, 17, 17);

// left pupil
fill(0);
noStroke();
ellipse(167, 233, 10, 10);
// right pupil
ellipse(252, 268, 10, 10);

// left eye highlight
fill(255);
noStroke();
ellipse(165, 230, 4, 2);
//right eye highlight
ellipse(249, 265, 4, 2);

// nose
fill(210, 232, 145);
stroke(125);
arc(190, 319.5, 20, 20, 30.5, HALF_PI, OPEN);
noStroke();
beginShape();
vertex(220, 237);
endShape(CLOSE);
p1 = {x: 220, y: 237}, p2 = {x: 190, y: 330}
p3 = {x: 400, y: 320};
noFill();
stroke(125);
curve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);

// hair
fill(36,107,104);
stroke(255);
strokeWeight(1);
beginShape();
vertex(115, 250);
vertex(115, 250);
endShape(CLOSE);

// mouth
fill(255);
stroke(100);
strokeWeight(1.5);
beginShape();
vertex(160, 345);
endShape(CLOSE);
strokeWeight(1);
line(160, 354, 200, 375);

// left ear
fill(210, 232, 145);
stroke(255);
strokeWeight(1);
beginShape();
vertex(115, 250);
vertex(115, 250);
endShape(CLOSE);
// right ear
beginShape();
vertex(290, 310);
vertex(290, 310);
endShape(CLOSE);

// neck
noFill();
stroke(210, 232, 145);
beginShape();
vertex(150, 390);
vertex(139, 370);
endShape();

// chin
noFill();
stroke(210, 232, 145);
strokeWeight(1);
beginShape();
vertex(115, 250);
endShape();

// shirt
fill(255);
stroke(255);
beginShape();
vertex(120, 425);