UI: left-click pause/resume, right-click reset.
Given an array of particles, draw a line or curve through each element in the array. By changing the comments in the source, a straight line series, a simple curve, or a smoothly-joined bezier vertex is possible.
The bezier version reminds me of the work of Alexander Calder. See source for additional credits.
To tweak this sketch, first download it.
Make your updates, then upload your tweak!