Skip to content

GradLabWebGL Gradient Engine

OKLab color science, 13 fluid algorithms, halftone, and interactive ASCII matrix — free, runs entirely in your browser.

What is GradLab

GradLab is a free online WebGL gradient generator that runs entirely in your browser. It uses GPU-accelerated shaders to produce real-time animated gradients — no server, no installation, no account required.

Unlike standard CSS gradient tools, GradLab operates in the OKLab perceptual color space, which means color transitions stay vivid and balanced across all hue combinations. The result is smoother, more professional-looking gradients straight out of the box.

Who Uses GradLab

  • UI/UX designers — create animated gradient backgrounds for landing pages, hero sections, and app interfaces
  • Brand designers — extract brand colors from a photo, blend them into a fluid gradient, and export as PNG or video
  • Web developers — export a self-contained HTML snippet and embed it as a live background in any site
  • Motion designers — record MP4 loops with ping-pong for seamless social media content
  • Creative coders — explore 13 different fluid and geometric algorithms as a visual playground

Key Features

Fluid Gradient Algorithms

GradLab includes 13 distinct flow algorithms, each producing a different visual structure:

  • Fluid Dynamics — turbulent, organic motion from layered noise
  • Domain Warp — marble-like veining through iterative UV distortion
  • Curl Noise — divergence-free vortex flows
  • Radial Topography — concentric gradient rings like a contour map
  • Nested SDF Shape — geometric glow from signed-distance field math
  • Diffusion Fluid — absorb a background image into the gradient flow

All algorithms run as GLSL fragment shaders directly on your GPU.

OKLab Gradient Blending

Most gradient tools blend colors in sRGB, which produces dark, muddy midpoints when mixing complementary hues. GradLab routes every blend through OKLab — a perceptually uniform color space — ensuring smooth, natural transitions at every step. You can also switch to RGB blending for a more traditional look.

Halftone Overlay

Apply a dithered halftone layer over any gradient using 4 dither matrices (random, 2×2, 4×4, 8×8 Bayer) and 6 dot shapes (circle, square, diamond, line, cross, ellipse). The result is a print-ready, editorial, or retro-digital aesthetic on top of any fluid gradient.

Interactive ASCII Matrix

Overlay a full-canvas grid of ASCII characters that responds to mouse movement in real time. Choose from code snippets, block characters, binary, or enter your own custom text. Characters brighten and decay based on cursor proximity, creating a living typographic texture.

Export Options

FormatUse Case
PNGStatic assets for design, print, social media
MP4 / WebMLooping video background, social content
Standalone HTMLEmbed live gradient anywhere with <iframe>

All exports render at a minimum 2× pixel density for sharp output on every display.

How to Get Started

Open gradlab.app in any modern browser — Chrome, Firefox, Safari, or Edge. No account, no download. The canvas starts rendering immediately with one of three preset configurations. From there, adjust colors, pick an algorithm, and export in seconds.

Read the Quick Start guide