//Scarlet Tong
//
function setup() {
createCanvas(600, 600);
background(254);
}
function draw() {
//hair
var c = color(0,0,0);
fill (c);
noStroke();
rect (105,184,382,350);
ellipse(296,195,382,282);
//clothes
var c = color (171,229,255);
fill (c);
noStroke();
rect(140,483,319,170,25,25,0,0);//tee
//face and neck
var c = color (255,204,188);
fill(c);
rect(170,193,255,260,0,0,140,140);//face
noStroke();
rect (267,420,63,80);//neck
rect (238,483,120,49,0,0,20,20);//collar
var b = color(0,0,0);//eyes, noses, lips
fill(b);
ellipse(245,275,13,23);
ellipse(354,275,13,23);
noFill();
stroke(0);
strokeWeight(5);
line(294,316,294,335);
line(294,335,305,340);
strokeCap(SQUARE);
arc(300,400,30,25,0,PI);
stroke (255,96,97);//glasses
strokeWeight(10);
strokeCap(ROUND);
line(204,246,280,246);
line(280,246,280,300);
line(204,300,280,300);
line(204,246,204,300);
line(320,246,396,246);
line(396,246,396,300);
line(320,300,396,300);
line(320,246,320,300);
line(170,270,204,270);
line(280,270,320,270);
line(396,270,425,270);
}
This is my first coding assignment and working with Java Script. I believe the Mondrian assignment was a nice jump start for me to get used to the coding language and the formatting. I relied on the online reference to help me on the assignment.