How it works

How it works

A quarter of a million GPU particles, each one texel of a floating-point texture, spring toward points sampled from a word drawn on a hidden 2D canvas. They hold it, let go in a sweep from left to right, ride a divergence-free curl-noise current as silk, and get called back by the next shape. Run your cursor through the letters and a small invisible fluid carries its wake. Each particle's spring lets go where that wake is moving and stays off for a while wherever the stroke cut through its letter. The letters part like water and heal behind you over about three seconds, instead of snapping back like rubber. Three quieter tricks make it look expensive. Particles are matched by rank, so every morph flows locally rather than criss-crossing the screen. Each particle is drawn as a Gaussian streak over exactly the distance it moved that frame, graded by the trail's own fade, so motion is continuous rather than stamped dots. Each streak is also sized by how sparse the sheet around it was a frame ago, so a stretched sheet stays a film instead of breaking into hairs and dots.

Pipeline (per frame)

JS         effect clock → shape k + phase · pointer segment → wake splat + bow capsule
           bow presence (decays 0.6 s) · view fit: targets scaled + offset into the stage an open
           panel leaves free (eased 0.18 s)
           │
WAKE       hidden stable fluid 228×128 RGBA16F (short side 128): xy velocity, z disturbance.
           No vorticity confinement. Sleeps max(heal, 7.1 s) + 0.5 s after the last stroke,
           fading out over that last 0.5 s
  splat+div    grip capsule: mix(v, v_pointer, w·grip), never add · z = max(z, w) (a plain
               copy when the pointer is still); ½ central differences of the result, second
               target of the same pass                                                         ──▶ vel, div
  pressure     10 Jacobi iterations, warm start ×0.8, folded into one 302-tap stencil
               (taps mirrored at the border, the same as clamp-to-edge Jacobi)                 ⇄  p
  grad+advect  v −= ½·∇p wherever the advection samples · semi-Lagrangian self-advection,
               fade 0.7 /s · z −= dt/heal, in place                                            ──▶ vel
PARTICLES  state 512×512 RGBA32F = 262,144 × (x, y, vx, vy) in screen heights · NEAREST + texelFetch
  update       f    = formation envelope of (t − delay·0.8 s): ramp in 0.75 s, hold, let go over 0.5 s
               u    = curl-noise current (2 octaves, analytic) · wake velocity sampled at the particle
               wake = max(|u_wake| / 0.5 sh/s, smoothstep(0, ½, z at the particle's home))
               k    = f · (1 − clamp(k_wake·wake) · tether(|T − p|)) · (1 − bow)   ← the Igloo trick
               a    = ω²·k·(T − p) + drag·(u_curl + u_wake) + bow push along the stroke's normal
               v'   = (v + dt·a) / (1 + dt·(2ζω·k + drag))  implicit damping + drag            ──▶ state
  targets      one 512×512 RGBA32F per shape (x, y, sweep delay), read-only
RENDER     HDR atlas 1932×1822 RGBA16F: full-res region 1932×1087 (canvas 2560×1440 capped at
           2.1 MP), a 192 px guard band, half-res region 966×543
  fade         dst ·= 0.01^(dt/trail)        blend (ZERO, SRC_ALPHA)                           ──▶ HDR
  streaks      262,144 instanced quads, no attributes (state fetched by gl_InstanceID)
               Gaussian capsule over this frame's travel, graded 1 → fade from head to tail;
               σ × defocus(distance from home) × √(0.35 / ρ_last frame), ≤ 3×;
               σ across × (1 + 2·ramp(speed)); energy-conserving, blend (ONE, ONE)
               out: local coords in σ√2 units + 3 flat half-packed words (first-vertex rule)
               wide ones (σ ≥ 1.6 px, σ across ≥ 3 px) → half-res region, σ² − 0.5 px², × 0.95
               quads wholly off screen dropped (same draw, same pass)                          ──▶ HDR
  bloom        5 box downs 966×543 … 60×33 (the first sums both regions), 4 tent ups added
               back in place, except the 483×271 one, written beside its level: that level's
               alpha is next frame's ρ                                                         ──▶ 966×543
  composite    full-res + half-res region, each bilinear and clamped to its own edge
               dark: 1 − e^(−k·rgb) per channel, screened with bloom
               light: Beer-Lambert ink over paper + the pyramid cast down-right as a soft shadow
               + interleaved-gradient-noise dither, premultiplied                              ──▶ canvas
ON CHANGE  (CPU, once per word set / resize / count: 100–180 ms at 262k for three shapes, ~320 ms at 1M)
               canvas 2D text or glyph (≤ 1600 px; portrait words up to 1.6× taller) → full-cell
               jittered lattice inside the 0.5 alpha contour → exactly N samples, order kept
               → 64 x-quantile strips, rows sorted → RGBA32F upload
render passes per frame: 3 wake (0 once idle) + update + fade and streaks (one pass)
                 + 5 bloom downs (2 with bloom off) + 4 ups + composite = 15 (12 idle, 8 bloom off)

The ideas that matter

Parameters

Custom words: choose Custom and type shapes separated by / (or spaces). {drop}, {ring} and {spark} are glyphs. Up to six shapes of up to 14 characters each.

Presets

Performance & compatibility

References & credits