Project 1 – Self Portrait

portrait
function setup() {
    createCanvas(600, 600);    //Rishi Karthikeyan, Section B
    background(220);
    text("p5.js vers 0.9.0 test.", 10, 15);
}

function draw() {
	background(42, 49, 36);    //green

	fill(29, 22, 16);    //dark brown
	noStroke();
	quad(120, 600, 480, 600, 470, 216, 130, 216);
	circle(300, 216, 340);

	fill(171, 113, 88);    //tan
	noStroke();
	circle(300, 215, 266);
	quad(177, 345, 423, 345, 433, 215, 167, 215);
	circle(300, 330, 248);
	quad(172, 260, 142, 279, 161, 343, 200, 342);
	quad(427, 260, 400, 341, 438, 343, 457, 279);
	
	fill(29, 22, 16);    //dark brown
	noStroke();
	quad(202, 195, 205, 210, 267, 215, 266, 200);
	quad(202, 195, 205, 210, 180, 224, 189, 208);
	quad(394, 209, 397, 194, 333, 199, 332, 214);
	quad(394, 209, 397, 194, 410, 207, 419, 223);
	circle(263, 390, 5);
	ellipse(282, 322, 8, 4);
	ellipse(316, 322, 8, 4);

	fill(255, 255, 255);    //white
	stroke(0);
	strokeWeight(3);
	circle(230, 256, 95);
	circle(370, 256, 95);
	line(278, 256, 322, 256);

	fill(218, 131, 110);    //pink
	noStroke();
	quad(300, 364, 344, 366, 315, 350, 300, 354);
	quad(300, 364, 256, 366, 285, 350, 300, 354);
	quad(256, 366, 344, 366, 330, 383, 270, 383);

}

Leave a Reply