Examples Code from https://p5js.org
A line segment is pushed and pulled by the cursor. Based on code from Keith Peters.
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.
This is a port by David Blitz of the “Penrose Tile” example from processing.org/examples