//Dayoung Chung
//Section E
//dayoungc@andrew.cmu.edu
//Project-01
function setup() {
createCanvas (600,600);
}
function draw(){
background(29,113,71);
strokeWeight(5);
fill(211,159,38);
ellipse(300,300,500,500);
//hair
strokeWeight(0);
fill(61,40,24);
ellipse(299,230,303,280);
rect(148,240,302,200);
//head
strokeWeight(0);
fill(252,226,215);
ellipse(300,320,270,330);
//eyes
strokeWeight(0);
fill(255);
ellipse(240,302,40,40);
ellipse(350,302,40,40);
//pupils
strokeWeight(0);
fill(0);
ellipse(240,302,20,20);
ellipse(350,302,20,20);
//nose
noStroke();
fill(241,165,157);
triangle(280,355,295,310,315,355);
//cheeks
strokeWeight(0);
fill(253,112,141);
ellipse(220,355,66,66);
ellipse(372,355,66,66);
//mouth
stroke(199,42,37);
strokeWeight(10);
noFill();
arc(300,400, 100, 50, 50, 15);
// left ear
strokeWeight(0);
fill(252,226,215);
ellipse(160,320,25,39);
// right ear
strokeWeight(0);
fill(252,226,215);
ellipse(440,320,25,39);
//eyebrow left/right
noFill();
stroke(61,40,24);
strokeWeight(8);
arc(236, 250, 30, 1, PI, 0);
arc(350, 250, 30, 1, PI, 0);
//left glasses
strokeWeight(5)
fill (260, 255, 3, 30);
ellipse(240,302,65,65);
//right
strokeWeight(5);
fill(260, 255, 3, 30);
ellipse(350,302,65,65);
//line(glasses)
strokeWeight(0);
fill(0);
rect(270,300,49,7);
}
For my self-portrait, I wanted to create very simple and bold character. I first started off with the head and then built off of that. Before working with p5js, I sketched my character on illustrator to make the process faster and simpler. I really had fun choosing the color palette to make it more balanced. Also, in the process, it was fascinating to understand and utilize graphical primitives into my own piece.