toys

Demos

Every tile below is the real simulation, scaled right down. Open one to run it full size and play with it.

steering behaviours

canvas 2d

Boids

Separation, alignment and cohesion resolved over a uniform grid. Hold to pull the flock into orbit.

vector field

canvas 2d

Flow Field

A lattice of segments easing toward a slowly drifting angle field. Nearby segments turn to aim at the cursor.

hubble sequence

webgl

Galaxy

A galaxy drawn off the Hubble sequence each visit — elliptical, lenticular, spiral, barred or irregular. Drag to tumble it.

scalar field

webgl

Lattice

One metaball field over a fixed dot grid. Wanderers bridge four dots at a time and walk the cells as X shapes.

signed metaballs

webgl

Lava Lamp

Positive and negative blobs summed per pixel in a fragment shader. Hold anywhere to carve a void into the field.

agent-based model

canvas 2d

Migration

Tens of thousands of agents chase a season around the world, grazing, breeding and starving.

slime mould

webgl 2

Physarum

Agents sense and reinforce a trail map that decays and diffuses behind them. Transport networks fall out of the loop.

height field

canvas 2d

Ripples

A dot lattice driven by expanding wavefronts. Press for a heavy drop, drag to lay a wake behind the cursor.