ablackbu – Project 01 – face

This was a perfect way to start exploring making art with code. While I was writing the code for shapes I could not help but think about how difficult and time consuming it was to make one rectangle appear on the screen. At the same time though it forced me to slow down and really think about the placement of each object.

 

sketch

function setup() {
    createCanvas(600, 600);
  
}

function draw() {
    background(146,228,247);
    
    //shirt
    strokeWeight(5);
    fill(230);
    ellipse(300, 600, 400, 300);

    //neck
    strokeWeight(5);
    fill(190, 166, 120)
    ellipse(300,480,140,80)

    //head
    strokeWeight(0);
    fill(237, 214, 154);
    ellipse(300, 300, 300, 400);
    
    //white left
    strokeWeight(0);
    fill(255);
    ellipse(270, 280, 50, 30);

    //white right
    strokeWeight(0);
    fill(255);
    ellipse(370, 280, 50, 30);

    //eye left
    strokeWeight(0);
    fill(15, 97, 170);
    ellipse(270, 280, 30, 30);

    //eye right
    strokeWeight(0);
    fill(15, 97, 170);
    ellipse(370, 280, 30, 30);

    //pupil left
    strokeWeight(0);
    fill(0);
    ellipse(270, 280, 10, 10);

    //pupil right
    strokeWeight(0);
    fill(0);
    ellipse(370, 280, 10, 10);

    //face cut right
    strokeWeight(0);
    fill(146,228,247);
    triangle(375,476,470,280,530,460)

    //face cut left
    strokeWeight(0);
    fill(146,228,247);
    triangle(225,476,130,280,70,460)

    //hair
    strokeWeight(0);
    fill(69,43,29);
    rect(150,70,300,100)

    //hair cut left
    strokeWeight(0);
    fill(146,228,247);
    triangle(140,60,220,60,140,200)

    //hair cut right
    strokeWeight(0);
    fill(146,228,247);
    triangle(320,60,460,60,460,200)

    //hair ext.
    strokeWeight(0);
    fill(69,43,29);
    triangle(140,200,150,300,220,70)

    //nose
    strokeWeight(0);
    fill(190, 166, 120);
    ellipse(330, 350, 30, 30);

    //lip bottom
    stroke(186,123,165)
    strokeWeight(10);
    fill(138,84,121);
    arc(330, 410, 80, 50, 0, TWO_PI+PI, OPEN);

    //teeth
    strokeWeight(0);
    fill(225);
    arc(330, 410, 76, 45, 0, TWO_PI+PI, OPEN);

    //lip top
    strokeWeight(5);
    line(292, 410, 368, 410)

    //brow left
    stroke(0,0,0)
    strokeWeight(10);
    fill(0);
    arc(270, 250, 60, 30, PI, TWO_PI);

    //brow right
    stroke(0,0,0)
    strokeWeight(10);
    fill(0);
    arc(370, 250, 60, 30, PI, TWO_PI);

    //red box
    strokeWeight(0);
    fill(200, 0, 0);
    rect(240, 555, 120, 40);

    //ear
    strokeWeight(0);
    fill(190, 166, 120)
    ellipse(160,300,50,90)






    

}

Leave a Reply