Magnetic
Hakim El Hattab has been playing around with magnets for this HTML5 canvas experiment. Particles orbit around magnetic points creating currents – the more particles there are around a magnet – the stronger it glows.

Particles flow around the magnets
You can drag the magnets around to make different effects, add additional magnets by double clicking, remove magnets by dragging them off the canvas and press left/right on the cursor keys to try different skins.



Related demos