A procedurally generated and interactive animation created with PixiJS.
Play with it here: http://proximity.hallada.net
A number of points are placed randomly on a canvas. They move in random directions with their own movement behavior. Each is assigned a random color. If other points travel close enough, a connection is drawn between them and each point's color becomes an average of all of its connected points' colors.
Your mouse on the canvas will repel points away, but clicking and holding will attract points towards your mouse until you let go, which will cause the points to explode outwards in all directions.
Scrolling your mouse will speed up or slow down time.
|hold to restrict points to the left of the screen
|hold to restrict points to the right of the screen
|hold to restrict points to the top of the screen
|hold to restrict points to the bottom of the screen
|makes points move linearly
|makes points meander
|makes points snappy
|makes points bouncy
|makes points elastic
|makes points overshoot
|toggles FPS counter
|toggles debug mode (including FPS counter)
|toggles display of nodes
|toggles display of lines
|toggles display of help modal
There are many more configurable values that affect the animation which don't
have an interaction or keybinding. You can find all of these at the top of
proximity.js. If you are feeling experimental, you can
clone the repo and edit those yourself.