Project – 01 – Face

face

/*		Austin Garcia
		Section C
		aegarcia@andrew.cmu.edu
		Project - 01
*/
function setup() {
    createCanvas(600, 600);
    background(200);

    strokeWeight(0);
    rect(150, 400, 200, 450);

    strokeWeight(1);


    ellipse(300, 300, 360, 440);

    arc(220, 250, 80, 80, 0, PI + QUARTER_PI, CHORD);
    arc(400, 250, 80, 80, 0, PI + QUARTER_PI, CHORD);

    fill(77, 31, 10);
    strokeWeight(0);
    ellipse(230, 270, 25, 25);
    ellipse(414, 270, 25, 25);


    stroke(77, 31, 10)
    noFill();
    strokeWeight(25)
    bezier(180, 140, 250, 50, 350, 150, 380, 100);
    bezier(180, 145, 250, 50, 350, 150, 390, 110);
    bezier(180, 145, 250, 90, 350, 100, 400, 110);
    bezier(150, 180, 250, 90, 350, 100, 400, 110);
    bezier(150, 180, 250, 90, 350, 90, 400, 110);
    bezier(180, 140, 250, 50, 350, 150, 400, 90);
    bezier(180, 140, 250, 50, 350, 150, 400, 90);
    bezier(180, 140, 250, 50, 350, 80, 380, 100);

    strokeWeight(2)
    line(320, 260, 340, 390)

    fill(194, 114, 107)
    ellipse(300, 440, 100, 60);

    strokeWeight(0);
    fill(255);
    ellipse(300, 420, 60, 20);
    ellipse(300, 460, 60, 20);




    //triangle(200, 140, 350, 60, 430, 140);
    //arc(300, 300, 280, 80, 0, HALF_PI);



    /* NOTES FROM CLASS rect(320 - mouseX, 10, 50, 100)
    rect(mouseX, height / 2, 50, 100)  use height / 2 to place in middle
    rect(random(50) + 100, height / 2, 50, 100)

    rect(width - 55, height - 55, 50, 50)    Places rectangle at 55,55 within
    canvas

    CONDITIONALS
    if (expression) {
        statement;
  }

    if (mouseX > 100)
        background("green")

    */



    // x,  y,  w,  h
}

function draw() {

}

Author: Austin Garcia

5th year Architecture Student

Leave a Reply