Examples /

Curl-flow streamlines

Fine threads trace a divergence-free flow field like ink stretched through water.

Initializing WebGPUwgpu-kit 2.2.0

Move the pointer to bend the flow. Complexity changes the vector field, not chemical reactions.

How it works

Finite differences of a scalar potential define a two-dimensional curl field. Every pixel integrates a short path through it and accumulates thin dye-like marks. This is streamline integration, distinct from the reaction-diffusion example.

Read the related guide →

Search concepts, APIs, and examples