Using arrays was a nice way to condense the long lists of variables and draw instructions I had in the previous iterations. I used an array to create the background blocks. I also used an array to create a large number of bubbles that float up behind Florum.
The biggest difficulty I had was getting the background rectangles to change every second. As you can see in the video, I was not able to find a way to make that happen using the array. I tried several different approaches. I tried using arrays to generate the variables inside the Blocko array, but Processing gave me an error for trying to use float[ ] inside of the array initializer where the variables would sit. I decided to keep the array with the blocks still, because the bubbles provide some background movement. I am still determined to find a way to generated new sizes and locations for the background blocks once every second.
It also took a little bit of experimentation to figure out the right combination to get the bubbles to move upward, but I eventually succeeded.
https://gist.github.com/capnjo/f0c3f46e42e843863b79be81d6d0dfaa