Project 1 – Self Portrait

This is my self portrait project!

Portrait Maggie
function setup() {
    createCanvas(991, 728);
    background(220);
    text("p5.js vers 0.9.0 test.", 10, 15);
}

function draw() {
	background(251,176,59);
	noStroke();
	//hairbuns
	fill(51,26,8); 
	ellipse(229.838,175.838,79.368);
	fill(51,26,8); 
	ellipse(517.838,175.838,79.368);
	//hairback
	fill(64,32,10);
	rect(205.565, 310.912, 347.604,382.583); 
	ellipse(379.838,326.838,365.093);
	//hair yellow triangle
	fill(251,176,59);
	triangle(187.838,699.838,327.838,613.838,327.838,699.838);
	triangle(423.838,612.838,426.838,693.838,563.838,697.838);
	//ears
	fill(226,119,113);
	ellipse(227.838,437.838,79.368);
	ellipse(525.838,437.838,79.368);
	//neck
	square(312.688,547.02,133.357);
	//face rectangle
	fill(238,168,136);
	rect(229.426,334.96,293.574,109.514);
	ellipse(375.838,443.838,292.949);
	ellipse(376.838,334.838,292.949);
	//bangs
	fill(64,32,10);
	arc(375.838, 327.838, 312, 312, PI, 0, CHORD);
	fill(238,168,136);
	triangle(303.838,334.838,373.838,201.838,445.838 ,334.838);
	fill(64,32,10)
	triangle(199.838,314.838,241.838,404.838,283.838 ,314.838);
	triangle(467.838,314.838,509.838,404.838,551.838,314.838);
	//mouth
	fill(226,119,113);
	arc(374.838, 443.838, 158.948, 158.948, 0, PI, CHORD);
	fill(199,86,94);
	ellipse(374.838,476.838,72.144,39.351 );
	//teeth
	fill(255,255,255);
	rect(314.874,444.269,118.054,18.731,0,0,9,9);
	//eyes
	fill(51,51,51);
	arc(303.838 , 381.838, 38.258, 38.258, PI, 0, CHORD);
	arc(445.838 , 381.838, 38.258, 38.258, PI, 0, CHORD);
	//nose
	fill(226,119,113);
	arc(375.838, 417.838, 44.817, 44.817, PI, 0, CHORD);
	//cheeks
	fill(226,134,129);
	ellipse(262.838,433.838,48.096);
	ellipse(487.838,433.838,48.096);
	//shirt
	fill(55,68,156);
	rect(306.129 ,623.536,146.474,19.676 );
	rect(306.129,658.515,146.474,69.958);
	fill(255,255,255);
	ellipse(377.838,684.838,17.489);
	//bunny base
	fill(255,255,255);
	rect(634.057,597.302,196.757,140);
	ellipse(732.838,588.838,196.757);
	rect(634.057,418.035,67.772,170.523);
	rect(763.042,418.035,67.772,170.523);
	ellipse(667.838,420.838,67.772);
	ellipse(796.838,420.838,67.772);
	//bunny eyes
	fill(51,51,51);
	ellipse(700.838 ,595.838,10.931);
	ellipse(770.838,595.838,10.931);
	//bunny nose
	fill(226,119,113);
	ellipse(736.838,615.838,26.234,15.303);
	ellipse(792.838,631.838,41.538);
	ellipse(674.838,631.838,41.538);










}

Leave a Reply