Categories
Uncategorized

Generative Thing

 

https://editor.p5js.org/CaydenHorne/sketches/ScfkuQEz3

This assignment allowed me to explore loops, variables, and functions. I feel that I have learned a good variety of techniques in p5 with this project. I created 9 iterations of moon phases, along with a sun, as well as a random position and weight generator for the stars. The background for all but the sun iteration is randomly generated as well. These random variables give the iterations each unpredictability and difference between each other. The moon phase and sun iteration has their own set of uniqueness and unpredictability. The sun stands out from the rest by being placed in the center of planets, in which the color of the planets are randomly generated. The moon is placed on the top right corner of the sun iteration to still include the moon theme, just from a different perspective. This iteration is remarkably different from the rest which then creates its own unpredictability. The moon phase may only have its background change color, but because it has a unique background of color, it gives this iteration its own identity as well. The sun and full moon boTh represent fullness and light and I wanted to emphasize its importance in different ways.

I managed and controlled the functions by assigning variables in the setup and creating functions with identifiable  names. I used a loop statement to allow each mouse-click to generate a new screen.