karinac-Project-01

karinac-portrait

function setup() {
	createCanvas(500,600);
	background(172,214,234);
	}

function draw() {
	//hair
	stroke(25,0,0);
	strokeWeight(10);
	fill(40,0,0);
	arc(225,250,300,250,PI,PI);
	rect(75,250,300,300);

	//shirt
	noStroke();
	fill(250,242,140);
	rect(100,525,250,125);
	stroke(150,150,150);
	strokeWeight(3);
	arc(225,525,250,150,PI,PI);

	//neck
	stroke(194,141,109);
	strokeWeight(4);
	fill(207,165,141);
	rect(175,400,108,70);
	stroke(150,150,150);
	strokeWeight(7);
	fill(207,165,141);
	arc(229,460,112,140,0,PI);

	//face
	stroke(194,141,109);
	strokeWeight(5);
	fill(207,165,141);
	ellipse(225,300,250,275);

	//left eye
	noStroke();
	fill(250,250,250);
	ellipse(170,310,50,50);
	fill(30,0,0);
	ellipse(175,305,35,35);

	//right eye
	noStroke();
	fill(250,250,250);
	ellipse(281,310,50,50);
	fill(30,0,0);
	ellipse(286,305,35,35);

	//left eyebrow
	noFill();
	stroke(0);
	strokeWeight(3);
	arc(170,275,60,10,PI,PI);

	//right eyebrow
	noFill();
	stroke(0);
	strokeWeight(3);
	arc(280,275,60,10,PI,PI);

	//nose
	noStroke();
	fill(194,141,109);
	triangle(200,365,225,320,250,365,20);

	//smile
	stroke(0);
	strokeWeight(2);
	fill(250,250,250);
	arc(225,380,110,80,0,PI);
	line(170,380,280,380);


	//headphones
	noFill();
	stroke(165,10,10);
	strokeWeight(20);
	arc(225,303,315,372,PI,PI);
	stroke(110,10,10);
	strokeWeight(35);
	arc(225,170,220,90,PI,PI);
	line(65,275,65,355);
	line(385,275,385,355);
	noStroke();
	fill(165,10,10);
	rect(30,265,40,100,30);
	rect(380,265,40,100,30);
	stroke(250,250,250);
	strokeWeight(5);
	line(65,372,65,405);
	line(65,405,85,415);
	line(85,415,55,435);
	line(55,435,85,460);
	line(85,460,55,485);
	line(55,485,85,492);
	line(85,492,85,600);

	//music note
	fill(0);
	stroke(0);
	strokeWeight(5);
	line(420,92,420,137);
	line(390,95,390,140);
	strokeWeight(6);
	line(390,95,420,92);
	strokeWeight(5);
	ellipse(380,140,20,10);
	ellipse(410,138,20,10);
	strokeWeight(3);
	line(457,25,457,60);
	ellipse(450,60,15,8);
	
	//hair-top
	fill(40,0,0);
	stroke(34,0,0);
	strokeWeight(3);
	rotate(QUARTER_PI-.13);
	ellipse(270,95,90,230);


}

I knew from the beginning that in addition to coding a self-portrait I wanted to display something that represented who I am.  So naturally, even though it took extra time and effort, I had to include the headphones since music has always been a huge part of my life.

The most challenging ad time-consuming feature was the front bangs of the hair layered on top of the headphones. The process consisted of a lot of trial and error as I struggled with the orientation of the ellipse.

Overall, I learned a lot through this process and I’m happy with how it turned out.

Leave a Reply