Back to archiveGenerative Experiments
Canvas 2D

Flow Field Drift

A dynamic flow field where short line segments follow sinusoidal vector directions over time.

How It Works

  • Each frame spawns short strokes at random positions across the canvas.
  • Stroke direction is sampled from a grid-driven field using sine and cosine terms.
  • Hue shifts over space and time to produce a continuous color drift.
  • A low-alpha clay background fill leaves motion trails without fully clearing each frame.

Source Code

tsx