Form Generator - UFOOO
Description
This is a ufo traveling at hyper speed while trying to doudge the shape-changing moon.
Design Process
This p5.js has random values, user-defined variables and mousepressed function. It depicts a flying ufo that changes color on the bottom when the mouse is pressed. The background is a loop of condensed eclipses with random x and y values. I looked up some looping tutorials online and learnt that i++ means adding its value to i. I started with the background first. Then the ufo is made with arcs, colors and strokes are applied. To illustrate the thruster on the bottom, a randomized color mousePressed() function is added. I looked up some examples online and used the if syntax. It was quite fun working on this assignment. The moon in the middle is made with user-defined variables with the let syntax, setting it to the mousex mousey values. I studied the class example and noticed the coder had defined all the variables before hand and made her code super clean, will be using this in future projects.
Reflection
Really enjoyed this assignment! I struggled at first when I tried to come up with the 2 sketches. Originally I had a donut drawn and planned to have it transform when the mouse is moved. I then changed my mind when I saw some star shooter memes on youtube and wanted to do something space related. (memes that have a photo spin and fall from far then zooms out) I learned a lot of the codes i used in this online and figuring the color part took a bit of time. Apart from that it went pretty smooth and im pleased with the color this time. Felt like I could do better in the last assignment so I spent more time on this haha.