javascript 2D metaballs effects

Using CreateJs blur and canvas’property compositeOperation to “lighter“, I tried to simulate a metaball effect.

blob
Click to view

On iphone, I used window.ondevicemotion‘s event handler and event object event.accelerationIncludingGravity with x, y, z attributes to simulate some lava with the device accelerometer.

 

try it out here!

qrcode

or open it in a new window