After yesterday's Processing.js
article I discovered this
Parcycle: A Particle System with HTML5 canvas.
You can view the effect in action in this demo:
I found the use of
globalCompositeOperation very interesting in this code. It allowed the author to make particles
appear lighter when they overlap by using a drawing mode rather than
detecting the colour on the canvas.