//Jinhee Lee
//Section C
//jinheel1@andrew.cmu.edu
//Project-01
function setup() {
createCanvas(600, 600);
}
function draw() {
background('blue'); //blue colored background
strokeWeight(3); //thicker outlines
fill(255); //white color for shirt
triangle(0,600,600,600,300,537);
fill(237,221,116); //yellowish color for neck and face
rectMode(CENTER);
rect(300,525,160,60); //neck
ellipse(300,300,400,450); //face
fill(255); //white color for eyeballs
ellipse(210,230,65,45);
ellipse(390,230,65,45);
fill(89,65,12); //brown color for outline of eyes
ellipse(210,230,40,40);
ellipse(390,230,40,40);
fill(0); //black color for eyes, hair features, and simplistic lips
ellipse(210,230,25,25); //eyes
ellipse(390,230,25,25);
quad(150,160,150,200,250,220,250,200); //eyebrows
quad(450,160,450,200,350,220,350,200);
triangle(400,140,30,170,380,10); //hair
triangle(380,130,400,30,550,170);
line(250,390,380,420); //lips
fill(247,181,195); //pinkish color for nose
triangle(260,340,340,340,300,240);
fill('red'); //red color for that anger mark you see in Japanese anime
rectMode(CORNER);
strokeWeight(0); //eliminate outlines for this shape
rect(170,30,20,50); //drawing the anger mark
rect(140,60,50,20);
rect(210,30,20,50);
rect(210,60,50,20);
rect(140,100,50,20);
rect(170,100,20,50);
rect(210,100,50,20);
rect(210,100,20,50);
}
Not quite as frustrating as other coding projects (only took me 1.5 hours to type up the code) I’ve done, but I certainly had to think it through. Word of advice kiddies, draw your picture on paper and note the coordinates. Makes your life so much easier.