//Ethan Ye
//ziningy1@andrew.cmu.edu
//Project Self-Protrait
function setup() {
createCanvas(500,530);
background(185,195,200);
}
function draw() {
//shouder
noStroke();
fill(110,130,150);
ellipse(400,600,360,380);
//neck
fill(230,210,177);
rect(350,340,111,100);
fill(110,130,150);
triangle(460,430,330,470,460,480);
fill(230)
fill(90,112,130);
ellipse(405.5,443,112,62);
fill(230,210,177);
ellipse(405.5,433,112,62);
fill(220,200,167);
ellipse(405.5,375,112,62);
ellipse(390,380,112,62);
//face
noStroke();
fill(234,218,194);
arc(353,267,330,270,PI+2*QUARTER_PI,HALF_PI+0.1,CHORD);
fill(234,220,196);
ellipse(340,280,140,245);
//ellipse(500,270,270,300);
//Hair
noStroke();
fill(50);
triangle(220,230,300,130,360,170);
fill(60);
triangle(250,130,490,90,360,170);
fill(30);
triangle(340,80,500,110,400,135);
fill(70);
triangle(360,140,500,110,500,200);
//eyebrow
fill(50);
quad(313,227,360,210,370,220,313,237);
triangle(360,210,390,215,370,220);
//eye
fill(200,170,150);
ellipse(345,258,49,28);
fill(240);
ellipse(342,255,50,27);
fill(0);
ellipse(329,257,13,20);
fill(230);
ellipse(326,252,4,3);
//nose
smooth();
fill(234,220,196);
triangle(272,256,240,310,280,310);
//mouth
//fill(200,70,90);
//arc(283,350,70,20,0,HALF_PI-0.2,PIE)
fill(243,143,101);
ellipse(300,355,40,25)
fill(170,60,80);
ellipse(291,350,50,25);
fill(185,195,200);
ellipse(275,350,50,25);
//ear
fill(230,205,175);
arc(440,270,100,70,5.4,1.4,CHORD);
fill(234,218,194);
arc(410,270,100,70,5.4,1.4,CHORD);
//intials
scale(0.72);
stroke(90,112,130);
strokeWeight(3);
line(90+60,220+110,90+60,260+110);
line(90+60,220+110,115+60,220+110);
line(90+60,240+110,110+60,240+110);
line(90+60,260+110,115+60,260+110);
rect(130+60,260+110,2,2);
line(145+60,220+110,160+60,240+110);
line(160+60,240+110,175+60,220+110);
line(160+60,240+110,160+60,260+110);
}
For this project, I intended to create a interesting facial expression with a simplistic style, which i decided to work with profile. I first worked on actual paper to sketch out some basic compositions, then moved to code, starting with the major geometric parts to detail adjustments. For colors, I also started with the gray scale, which is faster to begin with and provide a clear sense of hierarchy. And it works well for me to adjust all the colors together once the basic composition is laid out.