Concept:
My initial Idea was to create a realistic picture of a self-portrait of how I look in the traditional clothes I would wear when I am out.
Reflection and ideas for future work or improvements:
I would say that in the future, I would truly write down the numbers I try when it comes to centering things on the sketch because I kept going around in circles trying to center everything and because I kept placing the same numbers for the different heights and length due to me constantly forgetting what numbers I already tried so It just unnecessarily prolonged the process.
Code Implementation:
I have never used Javascript before, and my understanding of coding is somewhat simple. I had a tough time managing to create hair that looked normal at first, so I tossed that Idea out and wanted to create something else without knowing it was going to be a more complex idea in terms of coding, which was the Ghutra, thinking I would have to create a rectangle and be done with it. However, it did not look like anything close to what I wanted it to be, so I had to use a circle to show that the portrait was wearing it while using three different rectangles layered at different heights so that it shows the way I would personally tie it around my head. But now, looking back at the finished sketch, I would say that I was glad to take the long road of creating a Ghutra to showcase a more realistic portrait of the whole look I have going on.
function setup() { createCanvas(400, 400); background(255); } function draw() { // Body fill("white")// Body base color. ellipse(200,420,240,300)// Body base. // Face fill(210, 180, 140); // skin color ellipse(200, 200, 160, 200); // head shape // Ghutra fill("white"); arc(200, 130, 130, 90, PI, 0); rect(125, 120, 150, 30); rect(125, 110, 150, 25); rect(125, 130, 150, 10); // Eyebrows fill("black"); rect(150, 160, 40, 10); // left eyebrow rect(215, 165, 40, 10); // right eyebrow // Eyes fill("white"); ellipse(170, 190, 40, 20); // left eye white ellipse(230, 190, 40, 20); // right eye white fill("black"); ellipse(170, 190, 20, 20); // left pupil ellipse(230, 190, 20, 20); // right pupil // Mustache fill("black"); arc(200, 248, 80, 30, PI, TWO_PI); // Beard fill("black"); arc(200, 245, 140, 120, 0, PI); // Mouth fill("white"); arc(200, 250, 50, 20, 0, PI); // Hair fill("white"); noLoop(); // Stops draw loop }