Skip to content

Design study 01 · Fluid ink

Real fluid dynamics, solved live on the graphics card.

Glowing ink in launch orange, cactus green, and electric blue swirls, curls, and thins like the real thing — because the physics is real. The pointer lays a ribbon of ink and pushes the fluid with its own velocity; left alone, three invisible stirrers keep it moving.

Concept build · not client work

Written for this site to demonstrate the technique. On your project it would be designed around your brand, content, and performance budget.

Live demo: Fluid ink

WebGL is unavailable here — showing the still version.

Try it: Drag or move through the ink to stir it, click or tap to drop a blob, or press Splash. Clear wipes the canvas. Live demo — running in your browser
Built with
WebGL · GPU fluid simulation · Bloom
Libraries
None — plain browser code
Starts
When it nears the screen
Reduced motion
Still frame + Play button
Script weight
Measured when the demo loads

The case study

What it solves, and how it stays fast.

01

The problem it’s built for

Some brands are about colour and craft — painters, printers, salons, studios — and a static swatch can’t show that. Fluid motion is one of the few effects people instinctively reach out and touch. The aim was a genuine simulation, not a looping video: one that responds differently to every visitor and still holds its frame rate on an ordinary laptop.

02

How it’s built

  • A full fluid solver in raw WebGL with no library — about 35 full-screen passes per frame at top quality.
  • Each frame adds ink and force where the pointer moved, measures the swirl and reinforces it (vorticity confinement), then runs a 20-iteration pressure solve so the fluid behaves as incompressible, before carrying velocity and dye along the flow.
  • The display pass adds a soft bloom and lights the ink from its own gradient, so it looks like it has thickness.
  • New ink covers what is underneath rather than adding to it, so colours stay saturated instead of washing out to white. A ribbon fades in roughly four to five seconds.
  • When nobody is interacting, three invisible stirrers trace slow loops; they fade out while the visitor draws and ease back about a second after.
03

Performance choices

  • The velocity grid is 192 cells on the long side and the dye texture up to 1,024 pixels — light for the GPU, sharp on screen.
  • A three-step quality ladder shrinks the grid, dye size, pressure iterations, and canvas together when more than half of a 90-frame window runs below 45 frames per second.
  • Device pixel ratio is capped at 2 and the canvas at 2.2 million pixels.
  • Uses WebGL 2 where available and falls back to WebGL 1 with half-float textures, including a hand-written filter for GPUs that cannot filter them.
  • Starts when it nears the screen; pauses offscreen and in hidden tabs.
04

Accessibility & fallbacks

  • With reduced motion, one composed still shows (the opening is simulated ahead before anything appears) with a Play button; the pointer is ignored until the visitor presses Play.
  • Without WebGL or float textures, a CSS poster of ink pools shows instead, with a note saying so.
  • Splash, Clear, and Pause are real buttons, and the canvas is described for screen readers.
  • On touch screens, horizontal swipes stir and vertical swipes still scroll the page.
  • Nothing flashes.

Where it fits

Where a design like this earns its place.

Colour-led brands, and “play with it” moments after a booking.

Colour-led brands

Painters, printers, salons, tattoo and creative studios — colour in motion as the backdrop.

Thank-you & booking pages

A “play with it” moment that rewards the visitor for acting.

Single-message heroes

Behind one headline and one call to action.

Scoped like everything else: available on its own or added to any website package, flat-quoted in your launch plan with a written performance budget — what it does, what it may weigh, and how it behaves on phones and with reduced motion.

Want a moment like this on your site?

Tell us where it should go. You get a written scope, a performance budget, and one flat quote — before anything is built.

Prefer to start with a quick message? Use the message button in the corner — a real person replies, typically within one business day.

Use the up and down arrow keys to move through results, Enter to open one, Escape to close.