This is my project
sketch
function setup() {
createCanvas(200, 200);
background(255);
text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
background(random(0,75),random(0,75),random(0,75));
strokeWeight(0);
fill(random(210,255),random(210,255),random(210,255),75);
rect(0,0,100,200)
strokeWeight(0);
fill(255);
rect(50,80,100,55); //hair back
strokeWeight(0);
fill(255);
quad(60,160,140,160,75,50,125,50); //hair back
strokeWeight(0);
fill(255);
quad(55,145,145,145,60,70,140,70); //hair back
strokeWeight(0);
fill(random(50,100),random(50,100),random(50,100));
triangle(100,165,175,200,25,200); //shoulders
strokeWeight(0);
fill(random(100,200),random(100,200),random(100,200));
ellipse(100,100,90,125); //head
strokeWeight(0);
strokeWeight(0);
rect(85,100,30,77); //neck
strokeWeight(0);
strokeWeight(0);
triangle(100,185,115,177,85,177); //more neck
fill(random(210,255),random(210,255),random(210,255),75); //face shading
beginShape();
vertex(100,100);
vertex(110,120);
vertex(100,160);
vertex(145,160);
vertex(145,37.5);
vertex(100,37.5);
endShape();
stroke(100,0,50);
fill(20,0,20);
triangle(75,80,95,110,60,120); //right eye
fill(random(210,255),random(210,255),random(210,255));
circle(77,100,15); //right pupil
circle(120,100,30); //left eye
stroke(random(0,50),random(0,50),random(0,50));
strokeWeight(5);
line(110,100,130,100); //left pupil
stroke(255);
strokeWeight(3);
fill(0);
arc(100,140,50,20,15.7,PI+PI,PIE); //mouth
strokeWeight(0);
fill(255);
square(55,38,45); //hair front
strokeWeight(0);
fill(255);
arc(100,38,50,20,10.5,PI,PIE) //hair front
strokeWeight(0);
fill(255);
beginShape();
vertex(100,38);
bezierVertex(100,38,100,100,150,60)
bezierVertex(100,20,120,70,150,50)
endShape(); //hair front
noloop()
}