xxxxxxxxxx
74
function setup() {
createCanvas(600, 600);
background(224);
}
/*
For colors, search "RGB color picker" in Google
P5JS Drawing Functions:
noStroke(); // remove outline
fill(R, G, B); // set fill color
stroke(R, G, B); // set outline color
strokeWeight(#); // set outline thickness
rect(x, y, w, h); // draw a rectangle
ellipse(x, y, w, h); // draw an ellipse
triangle(x1, y1, x2, y2, x3, y3); // draw a triangle
line(x1, y1, x2, y2); // draw a line
*/
function draw() {
// face
fill(140, 140, 140);
ellipse(300, 320, 350, 350);
// Lucia:
// eyes Katie
fill ("black");
ellipse(250, 250,75,75);
ellipse(350, 250, 75, 75);
fill ("brown");
ellipse(250, 250, 40, 40);
ellipse(350, 250, 40, 40);
fill('white');
ellipse (250, 250, 10, 10);
ellipse (350, 250, 10, 10);
fill("brown");
rect(200, 180, 100, 10);
rect(300, 195, 100, 10);
// hair Adrienne
noFill();
stroke("#000032")
strokeWeight(2);
//left hair
fill("#000032");
bezier(300, 160, 0, 50, 150, 300, 100, 400);
//right hair
fill("#000032");
bezier(300, 160, 550, 50, 450, 300, 500, 400);
noStroke();
// mouth Jean
fill(0);
ellipse(300, 400, 200, 100);
fill(255);
ellipse(300, 360, 100, 20);
fill(255,100,100);
ellipse(300, 438, 100, 20);
}