SPARKZ.JS - A PARTICLE ENGINE IN JAVASCRIPT
download sparkz.js (right click, save as...)Test
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
loading
