Nadia Susanto – Project-01-Face

This was a challenging first project as I didn’t familiarize myself with all the attributes and primitives, but it was fun experimenting with it. There were a lot of times where I was confused with the coordinates, but I just had to keep testing it until the shapes were all in the right place.

sketch

/*  Nadia Susanto
	Section B
	nsusanto@andrew.cmu.edu
	Project-01: Self-Portrait (Face) */


function setup() {
    createCanvas(600, 600);
    background(0, 146, 150);
    noStroke();
}

function draw() {
//hair
	fill("black");
	ellipse(300, 200, 170, 170);
	ellipse(320, 120, 100, 100);
//ears
	stroke(50);
	fill(235, 160, 130);
	//left
	ellipse(155, 320, 50, 100);
	//right
	ellipse(445, 320, 50, 100);
//earrings
	fill(192, 192, 192);
	//left
	circle(145, 355, 10, 10);
	//right
	circle(455, 355, 10, 10);
//face color
	fill(245, 175, 130);
//neck
	rect(260, 450, 80, 175, 20);
//face
	ellipse(300, 350, 300, 350);
//eyes
	noStroke();
	fill("white");
	//left
	ellipse(230, 300, 50, 75);
	//right
	ellipse(370, 300, 50, 75);
//pupils	
	fill("black");
	//left
	ellipse(235, 300, 20, 20);
	//right
	ellipse(365, 300, 20, 20);
//nose
	noStroke();
	fill(235, 160, 130);
	triangle(275, 400, 300, 350, 325, 400);
	ellipse(300, 400, 50, 25);
//mouth
	fill("black");
	arc(300, 430, 100, 100, 0, 90, OPEN);
//eyebrows
	//left
	rect(205, 235, 50, 10, 20);
	//right
	rect(345, 235, 50, 10, 20);
//blush
	fill(250, 190, 200);
	circle(215, 420, 50, 50);
	circle(390, 420, 50, 50);
}

Leave a Reply