KPolheus – Project-01-Face

kpolhemu portrait

function setup() {
    createCanvas(600, 600);
    background(85, 169, 253);
}

function draw() {
	noStroke()

	//hair
	fill(255, 232, 139);
	rectMode(CENTER);
	rect(300, 300, 255, 405, 90, 90, 20, 20);

	//neck
	fill(205, 132, 123);
	rect(295, 350, 70, 300);

	//ear
	fill(205, 132, 123);
	ellipse(395, 290, 15, 30);

	//head
	fill(255, 172, 158);
	rect(300, 270, 188, 263, 90, 90, 175, 175);

	//shirt
	fill(218, 133, 172);
	rectMode(RADIUS);
	rect(300, 600, 150, 150);

	//hair details
	fill(255, 232, 139);
	triangle(320, 130, 200, 300, 200, 150);

	fill(255, 232, 139);
	triangle(320, 130, 250, 250, 340, 130);

	//right eye and eyelid
	fill(0);
	ellipse(255, 260, 30, 10);

	fill(255, 172, 158);
	ellipse(255, 255, 30, 10);

	//left eye and eyelid
	fill(0);
	ellipse(340, 260, 30, 10);

	fill(255, 172, 158);
	ellipse(340, 255, 30, 10);

	//nose
	fill(0);
	ellipse(290, 320, 10, 5);

	fill(0);
	ellipse(310, 320, 10, 5);

	//mouth
	fill(0);
	ellipse(300, 355, 20, 5);

	//earring
	fill(85, 169, 253);
	ellipse(398, 305, 10, 10);

}

Starting & completing this project was pretty difficult for me as I have zero coding experience. I attempted to keep it as simple as possible, using the most basic shapes and not too much detail.

Leave a Reply