//Brandon Hyun
//15104 section #1
//bhyun1@andrew.cmu.edu
//Project-01-Face
function setup() {
createCanvas(600, 600);
rect(0,0,600,600);
background(26,90,143);
noStroke();
//rectangularface
fill(248, 173, 133);
rect (100,100,400,400);
//hair
fill(99,67,57);
rect(100,100,400,100);
//whitetriangle on the left
fill(99,67,57);
beginShape();
vertex(100,100);
vertex(50,100);
vertex(100,200);
endShape(CLOSE);
//blacktriangle on the right
fill(26,90,143)
beginShape();
vertex(450,100);
vertex(500,100);
vertex(550,200);
endShape(CLOSE);
//black triangle on the bottomleft
fill(26,90,143)
beginShape();
vertex(100,450);
vertex(100,500);
vertex(200,550);
endShape(CLOSE);
//backhair
fill(99,67,57);
beginShape();
vertex(500,200);
vertex(450,200);
vertex(500,300);
endShape(CLOSE);
//glasses
fill(99,67,57);
ellipse(200,300,100,100);
fill(99,67,57);
ellipse(350,300,100,100);
//whitecirclesin glasses
fill(255,255,255);
ellipse(200,300,75,75);
fill(255,255,255);
ellipse(350,300,75,75);
//connectingbridge for glass
fill(99,67,57);
rect(240,280,65,15);
//eyes
fill(0,0,0);
ellipse(200,300,20,20);
ellipse(350,300,20,20);
//mouth
rect(250,400,75,15);
}
function draw() {
}
I really enjoyed making this portrait out of a software that I was never familiar with. It was quite challenging and confusing in the beginning but as I got further with it, I felt I was doing something that was really cool. I am very happy with what I have done and I hope I can do something greater with this.