How I was feeling that week.
self portraitDownload
function setup() {
createCanvas(600, 600);
background(220);
text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
background (130, 130, 130);
noStroke();
fill('#4d6a7b') //blue
rect(random(0, 600), random(0, 600), 3, 40); //rain
rect(random(0, 600), random(0, 600), 3, 40); //rain
rect(random(0, 600), random(0, 600), 3, 20); //rain
rect(random(0, 600), random(0, 600), 3, 20); //rain
fill(255, 255, 255);
ellipse(300, 184, 266, 211); //hat
triangle(182, 64, 185, 134, 227, 96); //ear
triangle(600-182, 64, 600-185, 134, 600-227, 96); //ear
fill('#000000');
ellipse(300, 224, 174, 164); //head
rect(213, 227, 174, 144); //hair
fill('#ddb88d')
rect(246, 206, 105, 112); //face
ellipse(299, 304, 127, 58); //cheeks
rect(288, 325, 22, 35); //neck
fill('#bb7522')
ellipse(300, 449, 143, 203); //shirt
fill('#ddb88d')
rect(230, 424, 25, 124); //left arm
rect(345, 424, 25, 124); //right arm
fill('#000000');
triangle(239, 205, 363, 182, 363, 242); //fringe
ellipse(273, 269, 9, 21); //left eye
ellipse(325, 269, 9, 21); //right eye
stroke(0, 0, 0);
strokeWeight(3);
line(288, 300, 310, 300); //mouth
noStroke();
fill('#f69180');
ellipse(259, 295, 21, 10); //deimple1
ellipse(336, 295, 21, 10); //deimple2
fill('#752516'); //red
triangle(288, 428, 318, 428, 300, 460); //fox pattern1
triangle(288, 428, 285, 418, 298, 428); //fox pattern2
triangle(306, 428, 321, 418, 318, 428); //fox pattern3
fill('#4d6a7b') //blue
rect(0,517, 600, 83); //puddle
}