project 01

here is my face(ish)

sketch
//Jaden Luscher
//Section A

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

function draw() {
  background(157, 102, 31)
  noStroke()

//blue: 2nd background color
  fill(40, 110, 154)
  quad(120,0,186.666,200,200,200,200,0);

//face
  fill(236, 196, 163)
  ellipse(120,100,120,150);

//eye
  fill(255)
  ellipse(100,90,40,20);
  fill(120, 50, 50)
  ellipse(100,90,20);

//lips
  fill(213, 152, 133)
  triangle(160,150,145,145,120,150)
  triangle(160,151,145,156,120,151);

//earring
  ellipse(55,177,10)
  ellipse(55,190,10)
  fill(40, 110, 154)
  triangle(50,170,55,120,60,170);

//black lines
  strokeWeight(2)
  stroke(0)
  noFill()
  line(120,0,160,120)
  line(160,120,145,125)
  arc(100,90,60,40,3.7,5.8,OPEN);

//glasses
  strokeWeight(5)
  stroke(115, 74, 21)
  ellipse(100,90,70)
  ellipse(175,80,40);

}

Leave a Reply