//Angela Rubin
//Section C
//aerubin
//Assignment-01
function setup() {
createCanvas(500, 500);
background(220, 248, 244);
angleMode(DEGREES);
}
function draw() {
//Hair
strokeWeight(0);
fill(64, 30, 5);
rect(140, 175, 220, 300);
//Shirt
if(mouseIsPressed) {
fill(255, 254, 56);
}
else {
fill(247, 219, 223);
}
rect(207, 390, 86, 110);
arc(220, 570, 270, 315, 180, 310, CHORD);
arc(280, 570, 270, 315, 200, 330, CHORD);
//Neck
strokeWeight(0);
fill(235, 210, 195);
rect(207, 320, 86, 105);
arc(250, 420, 86.6, 79, 0, 180, CHORD);
//Face
strokeWeight(1);
stroke(225,198,208);
fill(231, 212, 199);
triangle(250, 250, 325, 350, 250, 400);
fill(234, 211, 197);
triangle(250, 250, 175, 350, 250, 400);
fill(235, 210, 195);
triangle(250, 250, 175, 350, 150, 250);
fill(233, 214, 200);
triangle(250, 250, 325, 350, 350, 250);
fill(235, 210, 193);
triangle(250, 250, 340, 175, 350, 250);
fill(231, 212, 199);
triangle(250, 250, 160, 175, 150, 250);
fill(233, 209, 195);
arc(250, 250, 225, 247, 220, 320, PIE);
//Facial Features
strokeWeight(4);
stroke(0, 0, 0);
noFill();
arc(200, 268, 60, 60, 220, 320);
noFill();
arc(300, 268, 60, 60, 220, 320);
noFill();
arc(250, 300, 90, 80, 0, 180, CHORD);
line(250, 250, 265, 270);
line(265, 270, 250, 270);
//Bangs
strokeWeight(0);
fill(64, 30, 5);
arc(315, 130, 220, 180, 50, 180, CHORD);
arc(250, 268, 270, 315, 220, 320, CHORD);
arc(165, 160, 120, 65, 0, 110, CHORD);
rect(150, 175, 39, 15);
rect(310, 175, 40, 20);
//Arm Lines
strokeWeight(2.5);
line(168, 483, 168, 500);
line(332, 483, 332, 500);
//Bobby Pins
strokeWeight(3);
stroke(247, 219, 223);
line(332, 160, 315, 183);
line(323, 152, 306, 175);
}
This project really challenged my creativity as I do not normally picture simple shapes forming the basis of a human face. I began forming ideas by drawing faces on paper and experimenting with different shapes. Eventually, I came to the conclusion that triangles could be a viable option to draw the initial structure of the head. Instead of making the triangles the same color and no outline, I thought it would be interesting if each triangle was a slightly different shade than the adjacent ones to add an element of abstractness. I then added the rest of the features of the face, hair, and clothing. In addition, the shirt changes color when the mouse is clicked. I am very happy with the product and it was really enjoyable to create!