Eliza Pratt Project 01

sketch

/* 
Eliza Pratt
Section E
elpratt@andrew.cmu.edu
Project-01
*/

function setup() {
    createCanvas(400, 450);
    background(202, 219, 180);
}

function draw() {

    noStroke();
    //hair
    fill(77,47,23);
    ellipse(200, 200, 281, 310);
	
    //face
    fill(222,172,115);
    ellipse(200, 245, 253, 253);
    //EARS
    arc(80, 240, 60, 70, HALF_PI, PI + HALF_PI);
    arc(320, 240, 60, 70, PI + HALF_PI, HALF_PI);

    fill(161,114,50);
    arc(78, 240, 35, 45, HALF_PI, PI + HALF_PI);
    arc(322, 240, 35, 45, PI + HALF_PI, HALF_PI);

    ellipse(120, 275, 8, 8);


    //eyebrows
    fill(77,47,23);
    rect(100,190,66,5);
    rect(234,190,66,5);

    //eyes
    fill(255,255,255);
    ellipse(130, 225, 67, 30);
    ellipse(270, 225, 67, 30);

    fill(63,69,31);
    ellipse(138, 223, 25, 25);
    ellipse(278, 223, 25, 25);

    fill(0,0,0);
    ellipse(138, 223, 15, 15);
    ellipse(278, 223, 15, 15);

    fill(255,255,255);
    ellipse(144, 220, 5, 5);
    ellipse(284, 220, 5, 5);

    //glasses
    noFill();
    stroke(0,0,0);
    strokeWeight(3);
    rect(75, 200, 100, 60, 25);
    rect(225, 200, 100, 60, 25);
    line(175, 230, 225, 230);

    arc(130, 225, 67, 30, PI, 0);
    arc(270, 225, 67, 30, PI, 0);

    noStroke();

    //nose
    fill(161,114,50);
    ellipse(200, 278, 35, 35);

    fill(222,172,115);
    ellipse(200, 270, 35, 35);

    //lips
    fill(153,24,97);
    arc(200, 318, 50, 40, 0, PI);

    fill(92,13,58);
    arc(188, 318, 26, 20, PI, 0);
    arc(212, 318, 26, 20, PI, 0);

    //more hair
    fill(77,47,23);
    arc(319, 100, 284, 208, HALF_PI, PI, CHORD);
    arc(334, 80, 284, 208, HALF_PI, PI, CHORD);




    


}

This was fun, and took me less time to figure out than I thought it would! I found it difficult to arrange everything just by guessing random positions, so I did a quick sketch on Illustrator and then pulled the coordinates from there.

Leave a Reply