Flow, a field of particles

Thousands of particles that follow a current, turn as a galaxy or rise as a fountain, moved and drawn by Go at every frame.

A picture of the app

Open in its own page

Every particle is moved in a Go loop and drawn as a short line by one custom painter, at every frame. Where the lines cross, their light adds up. The bar at the bottom is made of Material widgets, over the picture.

What to try#

  • Move the mouse over the picture, or drag a finger: the particles are pulled to it.
  • Click, or tap: they are pushed away.
  • Choose Galaxy and move the pointer: the galaxy follows it. Then choose Fountain.
  • Move the slider up to 8,000 particles, and read the frames a second beside it.

In Field, the particles follow the flow of a liquid that cannot be pressed, so they never gather in one place by themselves.