The flow behind the title
The lines behind the title are drawn in your browser, frame by frame. A couple
of thousand particles are moved one step along a velocity field, and the frame
before is painted over in the page's own background color at 4.5% opacity —
which is what leaves the trails, and what makes them fade. The button next to
the colors stops the whole thing, and if your system asks for reduced motion it
never starts.
The field comes from a stream function. In two dimensions any smooth
ψ(x, y, t) gives a velocity u = (∂ψ/∂y, −∂ψ/∂x), and that field has zero
divergence whichever ψ you pick, because the two mixed second derivatives of ψ
are the same number. So the picture is an incompressible flow by construction
rather than by a solver's effort, and the streamlines the particles trace out
are the level sets of ψ.
Here ψ is a sum of two modes, each a product of two sines: one with wavelengths
of 520 and 380 pixels, and a finer one at 2.3 and 1.7 times those frequencies
and half the amplitude. Each of the four factors drifts at its own rate — 0.30,
0.20, 0.17, and 0.11 per second — and because those are not commensurate, the
pattern never quite repeats.
Your pointer adds a point vortex on top, falling off as 1/r and softened within
50 pixels of its center so that nothing blows up under the cursor. It has a
stream function of its own, so the sum is still incompressible. The color is
speed and nothing else, in twelve bands from teal to violet; a particle is
retired after about four seconds, or when it leaves the canvas, and reborn
somewhere random, or they would all end up in the slow corners.
None of this solves anything. There is no pressure, no material, and no
equation of motion being integrated: ψ is written down and differentiated by
hand, and the particles are carried along 16 milliseconds at a time. The real
computations are in Highlights, and they take rather longer than
that.