Project #2 Face Generator
Description
For this assignment, we had to create a simple generator that makes multiple variations of the same form. Transfer our drawings into the p5 sketch and plug the maximum / minimum values into random() for each of the attributes. We had to use variables, random(), and mousePressed() or keyPressed().
My face generator is my favourite vegetable the Eggplant. In my drawing process I was looking for a way to make the eggplant cute and move it according to the random coordinates being generated.
Link to code
Design Process
My drawing for a very straightforward eggplant, it is very cute according to me. My Eggplant takes different sizes as values for its radius so that the two ellipses overlap in each scenario/ face being generated. I also used random color generation to create a disco feel to the background to accentuate my charactr dancing while it is on the pan. It basically loves being cooked into another form. My character also has a stem crown(green) to add some details into it. Using mouseX and mouseY I've made the mouth of the character such that it changes from "Aah" to "Ooh" while it dances. Even its eyes squint in a way. I've also added a mousePressed feature where the text being displayed changes on mouse pressing. It starts as default as "Dancing Eggy" but then with mouse pressing it becomes "Dancing Eggplant" and "Eggplant Dancing".
Reflection
This project makes me realise how easily we can make and implement parameters that solve so many complexity we do while coding. It just increses our code productivity exponentially, like so much interactivity and randomness could be achieved by simply using a function and passing paramters that can be randomly generated or vary with the mouse position. So while making exact drawing from a paper sketch to code sketch creates some obstructions it also gives out some great interactive features and variations of cuteness.