Flow Field / Vector Field

also: vector field

Vector fields are classical mathematics; the long-form generative "flow field" technique was popularized in the 2010s (e.g. Tyler Hobbs).

community / folk Name — "Flow field" (and "vector field") are descriptive folk terms borrowed from mathematics/physics rather than a coined algorithm name; no single coiner of the phrase in its generative-art sense is attested. The technique was popularized by 2010s long-form practitioners (e.g. Tyler Hobbs), but popularizing a technique is not the same as coining its name — the coiner and date remain unresolved (to be confirmed).

In one line A field that assigns a direction vector to every point of the plane; particles released into it trace paths by following the local direction. The angle is most often derived from Perlin/Simplex noise.

Flow field — particle advection over a noise-derived vector field · Open in new tab ↗ · Motion begins only when you press Run.

The code

The actual sketch behind the demo above — sandboxed and reproducible. This is the whole thing.

flow-field/index.html
const SEED = Math.floor(Math.random()*1e9);
const PALETTES = [
  ['#1f3a93','#e74c3c','#f1c40f','#27ae60','#2c3e50'],
  ['#264653','#2a9d8f','#e9c46a','#f4a261','#e76f51'],
  ['#220a32','#7b2cbf','#c77dff','#e0aaff','#ffd6ff'],
  ['#0a0908','#22333b','#eae0d5','#c6ac8f','#5e503f'],
];

function setup() {
  randomSeed(SEED); noiseSeed(SEED);
  const s = Math.min(windowWidth, windowHeight);
  createCanvas(s, s);
  pixelDensity(2);
  noStroke();

  const palette = random(PALETTES);
  background(palette.shift());

  const N = 2400;            // particles
  const STEPS = 220;         // path length
  const FREQ = 0.0025;       // noise spatial frequency
  const SPEED = s * 0.0018;
  const STEP_SIZE = s * 0.0035;

  for (let i = 0; i < N; i++) {
    let x = random(width);
    let y = random(height);
    fill(random(palette) + '20');
    for (let j = 0; j < STEPS; j++) {
      // map noise → angle (×TWO_PI gives strong direction)
      const a = noise(x*FREQ, y*FREQ) * TWO_PI * 2.0;
      x += cos(a) * STEP_SIZE;
      y += sin(a) * STEP_SIZE;
      if (x < 0 || y < 0 || x >= width || y >= height) break;
      circle(x, y, SPEED);
    }
  }
}

Open the demo source ↗

How it works

Build a grid covering the canvas. For each cell, sample a noise function at the cell's coordinates and map the result to an angle, giving every cell a direction. Then seed particles at random positions and, each step, look up the angle of the cell the particle is in, advance the particle a small distance along that angle, and draw a segment of its trail. Repeating this for many particles over many steps yields the characteristic combed, streamline texture. The noise frequency controls how tightly the field curls; the step size and particle count control density.

Parameters

Lineage

Precedents
Tyler Hobbs
Related
Perlin / Simplex Noise, Particle System, Strange Attractor

Frequently combined with

Works using this algorithm (50)

Alan Ki Aankhen
fahad-karim
APEX
phenomena
Backwards
asaf-slook
Blaschke Ballet
numbersinmotion
Blooms
cory-haber
Coded Algorithmic Drawing #9
joan-truckenbrod
Collapsed Sequence
toiminto
Cytographia
golan-levin
Dipolar
junia-farquhar
Drift
paolo-ceric
Dustfold
lunarean
Ego Death
electralina
Electriz
che-yu-wu
Essenza
stefano-contiero
Exstasis
grant-oesterling
Fidenza
tyler-hobbs
Flows
ryley-o-eth
Fluiroso
sebastian-brocher-cryptoarte
Good, Computer
dean-blacc
Gravity 12
jimmy-herdberg
Gravity 16
jimmy-herdberg
Hello Modulo
nat-sarkissian
Hōrō
makio135
ilumz
wolffia-inc-motus-art
Lacunae
james-dalessandro
Life and Love and Nothing
nat-sarkissian
Longing
phenomena
Low Tide
artem-verkhovskiy-x-andy-shaw
Lumina
distcollective
Meridian
matt-deslauriers
Metaphysics
jinyao-lin
Mycelia
jmy
Nära
tengil
Neural Sediments
eko33
ORI
james-merrill
Phototaxis
casey-reas
Pointers
steve-pikelny
QQL
tyler-hobbs
Roamings
luca-ionescu
sail-o-bots
sturec
Through Curved Air
jacob-gold
Total Strangers
artem-verkhovskiy-x-andy-shaw
Trichro-matic
mountvitruvius
Tropism
neel-shivdasani
UMK
fernando-jerez
undead wyverns
hideo
Watercolor Dreams
numbersinmotion
We
vamoss
Wind Map
fernanda-viegas
Your Story
encapsuled

References

Last updated 2026-07-16