Click/hold mousebutton to generate particles!
A second version, with thanks to kooogy of the p5forums for pointing out the obvious way to help speed up the sketch :)
Trying to learn how to implement attraction into particle systems - this code is a little bit cobbled together from some of my own sketches and Shiffman's Nature of Code tutorials. Trying to optimise it as I am sure there must be much more efficient ways to control attraction than I have used here.
To tweak this sketch, first download it.
Make your updates, then upload your tweak!