Carly Sacco – Self Portrait

sketch

//Carly Sacco
//Section C
//csacco@andrew.cmu.edu
//Project-01: Self Portrait (Face)

function setup() {
  createCanvas(600, 400);
  background(187,191,223)
  
  stroke('white')
  strokeWeight(15)
  line(20,0, 20,400)
  line(80,0, 80,400)
  line(140,0,140,400)
  line(200,0,200,400)
  line(260,0, 260,400)
  line(320,0, 320,400)
  line(400,0,400,400)
  line(460,0,460,400)
  line(520,0,520,400)
  line(580,0,580,400)
  noStroke();
  
  stroke(197,197,197)
  strokeWeight(5)
  line(25,0,25,400)
  line(85,0,85,400)
  line(145,0,145,400)
  line(205,0,205,400)
  line(265,0, 265,400)
  line(325,0, 325,400)
  line(405,0,405,400)
  line(465,0,465,400)
  line(525,0,525,400)
  line(585,0,585,400)
  noStroke();
}

function draw() {

  //dress
  fill(148,148,148);
  rect(215,220,170,300,90,90,15,15);
  strokeWeight(1);
  
  //right arm
  noFill(148,148,148);
  stroke(1);
  arc(306,335,135,80, 0, 3.14/2);
  arc(306,325,100,60,0, 3.14/2);
  
  //left arm
  noFill();
  stroke(1);
  arc(260,340,60, 30, 3/4, 3.14);
  arc(254,357,70,40, 3/4, 3.14);
  
  //hair
  noStroke();
  fill(93,66,45);
  rect(230,90,140,200,40,40,0,0);
  stroke(1);
  
  //neck
  fill(190, 129, 102);
  rect(280,200,40,40);
      
  //hair on shirt
  noStroke();
  fill(148,148,148);
  rect(280,240,40,50);
  stroke(1);
  
  //head
  fill(194,137,112);
  rect(250,100,100,110,30,30,80,60);
  
  //hair on top of head
  noStroke();
  fill(93,66,45);
  arc(290,115,110, 50, 3.14*.75,0, CHORD);
  
  fill(93,66,45);
  arc(335,115, 60, 30, 160, 20, CHORD);
  stroke(0);
  
  //eyes
  fill('black');
  ellipse(280,150,15,10);
  ellipse(320,150,15,10);
  
  fill('white');
  ellipse(280,150,5,5);
  
  fill('white');
  ellipse(320,150,5,5);
 
  //nose
  noFill(194,137,112);
  stroke(5);
  arc(300,165,10,5, 1.57, 3.14);
  
  //mouth
  noFill();
  strokeWeight(2);
  arc(300,185,40,20, 0, 3.14);
  strokeWeight(1);
  
  //flower stem
  fill('green');
  rect(285,330,10,80);
  
  //flower
  noStroke();
  fill(249, 191, 47);
  rect(267,295,45,45);
  
  quad(288,285,315,320,285,350,260,320);
  
  fill('brown');
  ellipse(287,319,17,17);
  stroke(1);
   
  //hand
  fill(206,160,140);
  rect(270,350,40,30,15,15);
}


          
  
 
 
 
  
  

Through making this self portrait I learned how useful some of the simple components can be used to create different shapes to represent myself.

Leave a Reply