Codea visual test: Attraction

I have (kind of) recently done a little visual experiment using Codea. I like colorful things that move and being bored one day I decided to code something that just did that.

The program draws several balls floating in a 2D space, the color depends on each ball’s speed (blue to red, as speed increases)
You can tap anywhere to create a new attraction point (white circles) that slowly fades away until it dissappears. You can also drag attraction points to relocate them.

You can see it working here:

And the source code: