Jiyoung Ahn – 01 – Face

sketch

//Jiyoung Ahn
//Section A (9:00-10:20AM)
//jiyounga@andrew.cmu.edu
//Self Portrait


function setup() {
    createCanvas(600, 600);
}

function draw() {
    background(247, 146, 97); 

	
//hair down left
	strokeWeight(0);
	fill(0);
	rect(130,246,140,280);

//hair down right
	strokeWeight(0);
	fill(0);
	rect(335,246,140,280);

// hair 
	strokeWeight(0);
	fill(0);
	ellipse(300,250,350,350);

// left ear
	strokeWeight(0);
	fill(243,212,197);
	ellipse(147,300,24,38);

// right ear
	strokeWeight(0);
	fill(243,212,197);
	ellipse(450,300,24,38);

// face
	strokeWeight(0);
	fill(243,212,197);
	ellipse(width / 2, height / 2, 300,300);

//left eye
	strokeWeight(0);
	fill(88,79,75);
	ellipse(250,310,25,25);	
	

//right eye
	strokeWeight(0);
	fill(88,79,75);
	ellipse(400,310,25,25);

//eyebrow left/right
	noFill();
    stroke(3);
    strokeWeight(7);
    arc(250, 275, 30, 1, PI, 0);
    arc(400, 275, 30, 1, PI, 0);

//mouth
push();
	strokeWeight(7);
  fill(244,62,96);
  stroke (244,62,96);
  arc(330,375,50,20,0,PI);
  pop();

//bang
	fill(0);
	translate(210,210);
	rotate(40);
	ellipse(0,0,200,120);
	pop();

//hair end left
	strokeWeight(0);
	fill(247, 146, 97);
	ellipse(200,520,170,50);

//hair end right
	strokeWeight(0);
	fill(247, 146, 97);
	ellipse(400,520,170,50);


    
}

Leave a Reply