loading

SPARKZ.JS - A PARTICLE ENGINE IN JAVASCRIPT

Test




download sparkz.js (right click, save as...)

Instructions

Set config vars at top of sparkz.js, then
<script src='sparkz.js'></script>
makespark(x, y, xspeed, yspeed, colour, alpha);
eg, <button onclick='makespark(400, 100, (Math.random()*19)-9.5, (Math.random()*6)-3.0, "#ffa000", 100);'>spark!@#!</button>

© 2008 defproc.co.uk
RIP The Internet 1969-2012 | Powered by: Apache / PHP / MySQL | Made in Ninjapad NX | © defproc.co.uk, 2007_