function setup() {
createCanvas(500, 500);
background(255,211,155); //Burlywood 2
}
function draw() {
//eyesCornea and iris
fill(198,132,60);
stroke(255);
strokeWeight(30);
fill(130,130,60);
ellipse(334,166,100,100);
ellipse(166,334,100,100);
//eyesPupils
fill(0);
noStroke();
ellipse(334,166,10,10);
ellipse(166,334,10,10);
//eyelids
noFill();
stroke(255,211,155);
strokeWeight(75);
//bezier(50, 400, 125, 125, 250, 320, 250, 250);
//bezier(250, 250, 320, 250, 125, 125, 400, 50);
//mouth
noStroke();
fill(255,0,0)
triangle(400,500,450,500,450,450)
fill(100,0,0);
triangle(390,525,440,525,440,475)
//hair
fill(218,152,80); //use this RGB as highlights & darker for fill
strokeWeight(0);
triangle(0,0,0,290,290,0);
//hairLines
strokeWeight(2);
stroke(198,132,60);
line(0,250,25,275);
line(0,200,50,250);
line(0,150,75,225);
line(0,100,100,200);
line(0,50,125,175);
line(0,0,150,150);
line(0,250,175,125);
line(0,200,200,100);
line(0,150,225,75);
line(0,100,250,50);
line(0,50,275,25);
line(0,0,300,0);
noFill();
stroke(0, 0, 0);
strokeWeight(25);
bezier(350, 450, 450, 350, 90, 90, 15, 80);
}
This face started with quick sketches in my sketchbook. I used the grid on the page to approximate the points I would use in the program. Once I had access to a computer, I was able to quickly write the code!