Examples Code from https://p5js.org
Follow 1
A line segment is pushed and pulled by the cursor. Based on code from Keith Peters.
Wavemaker
This illustrates how waves (like water waves) emerge from particles oscillating in place. Move your mouse to direct the wave. Contributed by Aatish Bhatia, inspired by Orbiters by Dave Whyte.
Penrose Tiles
This is a port by David Blitz of the “Penrose Tile” example from processing.org/examples