Using it's simple business. The instructions are right there on the sparkz page. Just include sparkz.js
<script type='text/javascript' src='sparkz.js'>
// courtesy of defproc.co.uk [optional ;)]
</script>then to create a particle, just call makespark(x, y, xspeed, yspeed, colour, alpha);.
<button onclick='makespark(84 ,92, (Math.random()*19)-9.5, (Math.random()*6)-3.0, "#ffa000", 100);'>
spark!@#!
</button>
There're a few variables you can set at the top of sparkz.js to customise its behaviour. Enjoy!
loading

