Skip to main content
BVDART Logo

Gradient mapping

Gradient mapping replaces a pixel’s tonal value with a color sampled from a gradient. It recolors an existing image without changing its geometry.

Trace one image pixel through a tone-to-color map.

Pick a tone · (72, 54)
→
Image recolored by its tones
Same location, mapped color
→ 139 / 255 →
→
Source artwork
Print palette
Tone direction
(72, 54) · #e77a27 → #da7c48round(0.2126 R′ + 0.7152 G′ + 0.0722 B′) = 139t = 0.545 · sRGB interpolation

Turn glazed ceramics or coastal light into a print palette. Select a pixel with the pointer or arrow keys: its encoded tone chooses the ramp position, independent of its location. Cyanotype here is a blue palette inspired by the print process, not a chemical simulation. The bottom strip exposes the full tonal range; move the middle stop to redistribute it.

The middle stop redistributes the print colors. Then a probe scans the source tone strip to follow each tone into the palette. Use any control to take over.

What to try
  1. Click the source image or use its arrow keys to choose a pixel; follow its tone onto the ramp.
  2. Choose Coastal light or another Print palette, then move the middle stop or reverse the tone direction.
Open in the Lab ↗

What to look for: The selected location stays fixed while its tone chooses a new color. Similar encoded tones use similar ramp positions wherever they occur in the image.

How it works

The Lab computes a luminance-like value from encoded RGB channels and treats it as a position along the gradient. Dark pixels sample the beginning, light pixels the end, and intermediate values interpolate between surrounding stops. Stop placement controls how much of the tonal range receives each color.

This differs from laying a spatial gradient over the canvas. A gradient map follows the image’s values wherever they occur. Reversing the stops exchanges the tonal roles of colors; the Amount setting blends the mapping with the existing image.

Use it in the Lab

Use a gradient map after a noise field, edge treatment or grayscale study to build a controlled palette. Compare sRGB, Lab and OKLCH interpolation and record the stops in a reusable chain.

Limits & distinctions

Gradient mapping is not indexed-color quantization. Interpolated samples can create many intermediate colors between the stops.

Sources & references

Guide updated