Microsoft Surface has a cool simulation that allows you to drag your fingers across the table to create a water simulation. That got me to thinking about doing it in Flash. Thanks to David Lenaerts’ excellent Ripple class, it took me about 10 minutes to create the example below.
As you can see the performance is very nice. The code that I used to create this is below. Again, all of the cool stuff comes from David’s code.
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
t = new Bitmap(new bmap());
r = new Rippler(t, 60, 6);
r.drawRipple(e.stageX, e.stageY, 20, 1);