Bouncing balls in openFrameworks

Hi, all,

My original intention was to be more ambitious and translate a recent Processing sketch to openFrameworks. As I spent more time digging around in the openFrameworks resources, however, that ambition faded pretty quickly. The result: I have translated an early array of bouncing balls from Bootcamp, along with its flawed collision detection. But the balls DO change color when you hit a key—whee!

I found the available online resources to be much more difficult to use than for Processing; in fact, it took me a very long time just to figure out how to use HSB color (rather than RGB), and how to display plain text in the application window. I’m sure (at least, I hope) that this will improve over time as I get more used to it, but the examples I found on the oF website were very unclear on HOW to implement the various functions, especially as the file structure of openFrameworks makes everything far more complicated.

Here is the processing sketch on OpenProcessing. And here is the openFrameworks code on GitHub.

Finally, here is the link to the screenflow video on Vimeo.