rdrice_por
//Robert Rice
//Section C
function setup() {
createCanvas(400, 400);
background(75);
fill(255);
text("rdrice. p5.js vers 0.9.0", 10, 15); //ver+author text
}
function draw() {
noStroke();
fill(255, 255, 0);
triangle(200,-280, 350,400, 50,400);
fill(170, 50, 50);
rect(240, 290, 30, 110);
fill(180, 70, 70);
circle(255, 290, 30); //left sleeve
fill(180, 50, 50);
rect(135, 290, 120, 110);
fill(190, 60, 60);
circle(195, 290, 120);
fill(245, 205, 155);
circle(195, 260, 60); //body
fill(170, 50, 50);
rect(120, 290, 30, 110);
fill(180, 70, 70);
circle(135, 290, 30); //right sleeve
fill(230, 190, 145);
quad(180,195, 180,240, 200,240, 210,195); //neck
fill(245, 205, 155);
rect(155, 65, 90, 130); //head
fill(185, 145, 95);
rect(200, 181, 47, 2); //mouth
fill(110, 85, 55);
triangle(245,80, 269,83, 245,95);
fill(170, 130, 80);
triangle(155,130, 155,65, 135,62);
fill(155, 120, 75);
triangle(155,65, 270,85, 200,50);
fill(135, 105, 65);
triangle(230,65, 245,65, 270,85); //hair
fill(230, 180, 120);
triangle(242-2,165, 262-2,160, 242-2,110); //nose
fill(230, 180, 120);
circle(155, 130, 20); //ear
fill(150,0,150);
circle(190,113, 10);
circle(260,113, 10); //eye bags
fill(0);
circle(190,110,10);
circle(260,110,10); //eyes
strokeWeight(1);
stroke(185, 145, 95);
line(200,113,197,123);
line(250,113,253,123); //wrinkles
noFill();
stroke(0);
arc(194, -101, 413, 413, 1.345998, 1.614255);
arc(264, -101, 413, 413, 1.345998, 1.614255); //eyebrows
noLoop();
}
-Robert