Shannon Case Project-01-Face

Shannon’s Self Portrait

//Shannon Case
//scase@andrew.cmu.edu
//section D
//this program creates my self portrait

function setup() {
    createCanvas(600,600);
    background(random(0,255),random(0,255),random(0,255)); 
    //creates background that changes each time the page loads
    
}

function draw() {
	noStroke(); // makes sure the shapes have no outline
	fill('tan');
	rect(280,550,20,60);
	rect(320,550,20,60); //creates my legs

	fill('brown');
	rect(200,150,200,200); //creates hair
    ellipse(300,100,215);

	fill('red');
    triangle(100,550,300,150,500,550); //creates red dress

	fill('tan');
	ellipse(300,150,200); //creates my head

	ellipseMode(RADIUS);  // Set ellipseMode to RADIUS
    fill(255);  // Set fill to white
    ellipse(275,130,15);  //

    ellipseMode(CENTER);  // Set ellipseMode to CENTER
    fill('blue');  // Set fill to blue
    ellipse(275,130,15);

    ellipseMode(RADIUS);  // Set ellipseMode to RADIUS
    fill(255);  // Set fill to white
    ellipse(325,130,15);  //

    ellipseMode(CENTER);  // Set ellipseMode to CENTER
    fill('blue');  // Set fill to blue
    ellipse(325,130,15);

    //^^ creates my eyes

	noFill();
	stroke(0);
	curve(225,130,275,200, 325, 200, 375,130); //creates smily face
 
    
}

For this project I played around with shapes, layering them on top of each other in order to create a stylized figure of myself. I chose to portray myself in my favorite red dress, and smiling because it makes me happy to try coding!!

Leave a Reply