PROJECT-01-FACE

sketch

//Lydia Jin
//Section B
//jialuj@andrew.cmu.edu
//Project-01

function setup() {
    createCanvas(500, 500);
    background(220);
   
}

function draw() {
	noStroke();
    //hair
    fill(118,70,18);
    rect(185,170,130,120);
    //body
    fill(25);
    triangle(130,500,250,260,370,500)
    //face
    fill(247,204,170);
    ellipse(250,180,120,180);
    //neck
    fill(247,204,170);
    rect(240,265,20,20);
    //hat
    fill(206,180,180);
    ellipse(250,160,300,20);
    ellipse(250,130,150,80);
    fill(0);
    rect(180,148,140,4.8);
    //eyes
    fill(31);
    ellipse(220,185,10,20);
    fill(31);
    ellipse(280,185,10,20);
    //nose
    fill(230,183,155);
    ellipse(250,210,10,30);
    //mouth
    fill(224,62,18);
    ellipse(252,250,15,10);
    //ears
    fill(247,204,170);
    ellipse(190,200,5,20);
    ellipse(310,200,5,20);
    //sun
    fill(255,239,0);
    ellipse(470,20,200,200);
}

The portrait of myself is quite simple and it shows me walking on a sunny day wearing a hat.

Leave a Reply