Graham van de Ruit

Editorial & information designer


  About   |   Links   |   Teaching   |


Random motion


2010


When I was learning Flash and ActionScript I had a lot of fun playing around with random motion. Here are two versions of a simulator I made, with a few variables changed in the code.

I had variables to control the number of stars, their minimum and maximum sizes, their minimum and maximum speeds, the maximum acceleration, whether they recognise the edge of the stage as a bounding box, and, if so, their bounce off the sides.