Experiments2026 · Browser · WebGL 2

Mesh Gradient

An animated mesh gradient generator: place colour points on the canvas, drag them around, and the gradient flows between them. Colours blend in Oklab, so the transitions stay clean, and the motion repeats on an exact cycle.

WebGL 2GLSLTool

cycle 16.0 s

Drag the points to move the colours; double-click the canvas to add one.

Presets
Colours
  • 1#35ce8d
  • 2#e8e9e4
  • 3#9fe3c3
  • 4#13744a
  • 5#f4f1ea
Motion
Look
Pointer
Mode
Frame
Ratio
Export

The video lasts one full cycle, so it loops without a seam. The CSS is a still approximation; the HTML carries the whole engine, motion included.

What it’s for

  • Start from a preset (Signal, Aurora, Sunset, Ocean, Lava, Pastel, Midnight, Mono) or a random one, and edit the palette: up to 8 colours you drag right on the canvas.
  • Tune speed, drift, flow, twist, softness and grain, and bend the gradient with the pointer.
  • Download a PNG or a video that loops without a seam, for backgrounds, covers or presentations.
  • Copy the CSS (a still version) or the settings, or download an HTML file with the whole engine to take the animated gradient to your site.
© 2026 Arturo Fuentes