JavaScript Particle Engine

I’ve always been a fan of eye candy, and a couple weeks ago while bored I decided to whip together a particle engine (the way explosions, rain and similar effects are achieved in games), except attempt it in javascript.

There are many disadvantages to a JavaScript particle engine, the main ones being memory and speed. I gave it a shot anyway, and the results are quite nice to look at (although you can’t run it at decent speed with more than 500 particles even on top hardware).

Either way, I’ll put it up here for anyone to look at or comment on. Click the link below to take a look. Try click to create a circle, or double click for an explosion. If you want to change any options just refresh the page.

Go to http://www.lusion.co.za/labs/particle to check it out

Playing with some of the other hidden variables, can produce some nice effects:

1 2 3 4 5 6 7 8 9

Leave a Reply

You must be logged in to post a comment.