Tuesday, April 28, 2009

Ripple Effect in ActionScript 3

Click square to change color

The above Flash Movie is only 2KBs and is easily adjustable to any size or resolution (although I can't guarantee performance at large sizes).

This experiment was something I did on the spur of the moment today because I thought it would be an interesting challenge. It uses a grid of points with amplitudes and creates ripples in the grid. Then I draw the grid to a Bitmap object.

All of this was done with my own custom code with no external libraries other then the default ones in Flash.