Portrait

portraitDownload
function setup() {
    createCanvas(600,600);
    background(142,97,79);
    text("p5.js vers 0.9.0 test.", 10, 15);
}

function draw() {
	stroke(55,42,31);
	strokeWeight(5);
	noFill();
	arc(100,450,200,200,0, HALF_PI);    //left neck
	arc(420,450,200,200, HALF_PI, PI);  //RIGHT NECK
	noStroke()
	fill(55,42,31)
	arc(250,300,300,350, PI + PI + HALF_PI, HALF_PI + PI );   // left most arc
	fill(60,45,28);
	arc(260,300,300,350, PI + PI + HALF_PI, HALF_PI + PI );  //2nd left most arc
	fill(70,50,24);
	arc(275,300,300,350, PI + PI + HALF_PI, HALF_PI + PI );  //3rd lest most arc
	fill(80,55,20)
	arc(300,300,300,350, PI + PI + HALF_PI, HALF_PI + PI ); //4th left most arc
	fill(90,60,15) 
	arc(350,300,300,350, PI + PI + HALF_PI, HALF_PI + PI );  //5th left most arc
	fill(88,63,53);
	stroke(55,42,31);
	strokeWeight(5);
	circle(115,330,40);   //right nostril
	strokeWeight(4);
	circle(115,330,30);
	strokeWeight(3);
	circle(115,330,15);
	strokeWeight(2);
	circle(115,330,5);
	strokeWeight(5);
	circle(65,325,35);     //left nostril
	strokeWeight(4);
	circle(65,325,25);
	strokeWeight(3);
	circle(65,325,15);
	strokeWeight(2);
	noStroke();
	circle(65,325,5);
	fill(152,113,94);
	triangle(150,290,40,290,80,350); // triangle nose
	fill(135,100,100);
	triangle(160,290,50,290,90,350);
	ellipse(140,410,150,50);     //lips
	stroke(55,42,31);
	strokeWeight(5);
	line(69,415,212,405);
	noFill();
	square(200,220,45,20);
	square(95,220,45,20);
	fill(0);
	ellipse(221,242,40,25);
	ellipse(118,242,40,25);
	
	noLoop();

}

Leave a Reply