Sewon Park – Project01 – Face

I felt that a portrait of my face should also encompass my golden cross earrings that I have been wearing since freshman year which is basically a part of my face now. I used the gold cross design to also enhance the background.

selfportrait

/* Sewon Park
Section 1B
sewonp
*/

function setup() {
    createCanvas(600, 600);
    text("p5.js vers 0.9.0 test.", 10, 15);
}

function draw() {
	background(0);
    
    fill(241,194,125)
	ellipse (300,300,400,400)

    fill(255,255,255)
	ellipse (200,230,30,50)
	ellipse (400,230,30,50);

	fill(0,0,0)
	ellipse (200,230,15,20)
	ellipse(400,230,15,20);
	
	fill(241,194,125)
	arc(100,270,40,40,0,PI,CHORD);
	arc(500,270,40,40,0,PI,CHORD);
    
    fill(249,249,40)
    rect(90,285,5,30);
    rect(85,290,14,5)
    rect(505,285,5,30)
    rect(500,290,14,5)
  
  	rect(280,30,40,10)
  	rect(295,10,10,60)
    
    rect(50,500,40,10)
    rect(65,480,10,60)
    rect(510,500,40,10)
    rect(525,480,10,60)

    fill(0,0,0)
    triangle(300,300,310,330,290,330)


    
    fill(255,0,0)
    arc(300,400,20,40,0,PI,CHORD)

    fill(0,0,0)
    arc(300,190,290,180,PI,0);

    stroke(255)
    line(300,100,300,190);
    line(280,103,280,190)
    line(260,106,260,190)
    line(240,109,240,190)
    line(220,115,220,190)
    line(200,125,200,190)

    line(320,103,320,190)
    line(340,106,340,190)
    line(360,109,360,190)
    line(380,115,380,190)
    line(400,125,400,190)





 }

Leave a Reply