My midterm project will be a sketch of a square universe. While looking for inspirations, I came across a tutorial about recursion, which is putting a function within the same function to achieve something like a loop but different. After following the tutorial I played around with it and came up with a really cool spaceship looking diamond object made up of millions of squares. Then I rotated the whole recursion and used the scale to zoom into the object to reveal a universe of squares.
At this point, I’ve used variables, functions, scale, rotate, conditional, and interaction in my sketch.
This part of the project asked to incorporate classes into the sketch, but I had difficulty executing recursion with a class. I need to figure out how to do this for part 2, because I have two objects moving separately, and I would like to organize them in classes.
I have a pretty solid vision for this project. First, the sketch starts off with a close up of rectangular recursion, which looks like an ancient pattern of some sort. Then with the arrow key people will be able to zoom out to reveal the diamond shape and orbiting circles. However, once people reach a certain point of scale, the diamond breaks apart into a galaxy of squares. Then the sketch zooms into the galaxy.
My initial sketch has some minor problems with the interaction, but the most urgent issue for next week will be incorporating classes.
Inspiration: https://www.youtube.com/watch?v=s3Facu6ZVeA&t=4s
*When I was uploading the sketch on OpenProcessing, it worked initially, but after saving it does not show anything because of an unexpected identifier. The program still works on Processing.
https://www.openprocessing.org/sketch/512849
Here is a screen recording of my sketch for now.