Skip to content
IndexRequest a UIAboutContact

Gradient Banding vs Dither

A dark gradient shown banded, dithered and smooth, with a colour-levels slider.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Close-up comparison of one very subtle dark navy to charcoal gradient shown in three horizontal strips: the first strip with clearly visible stair-step bands of colour, the second strip with a fine dither noise hiding the bands, the third strip perfectly smooth, each labelled Banded, Dithered and Smooth, neutral light background around the strips, flat clean presentation. Negative: extra colours, objects, text errors, heavy grain. Reduced motion: still image.

About this pattern

Definition

Smooth gradients on screens are made of a limited number of colour steps. When the colour changes slowly, each step covers many pixels and shows up as visible bands, especially on dark, low-contrast gradients. Adding a tiny amount of noise before the colour is rounded, known as dithering, breaks the edges so the eye sees a smooth ramp.

When to use it

  • Banding appears most in dark, subtle gradients and in large flat areas such as backgrounds and skies.
  • Dithering adds noise of about one colour step before rounding.
  • A fine grain overlay in CSS or an image gives a similar effect.
  • Higher bit depth or fewer, bolder colour stops also reduce it.

What the controls do

  • Three modes and a Levels slider to coarsen the colour steps.

Motion & timing

  • Redraws instantly when you change a control.
  • Reduced motion: nothing animates.

Tips & variations

  • Heavy noise looks dirty; keep it near one step in strength.
  • On exported images, check at 100 percent and on a real display.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Mode"><button data-p="0" aria-pressed="true">Banded</button><button data-p="1" aria-pressed="false">Dithered</button><button data-p="2" aria-pressed="false">Smooth</button></div><canvas id="cv" width="300" height="90" role="img" aria-label="Dark gradient shown with the chosen quantisation mode"></canvas><label class="rw">Colour levels <b id="lv">12</b><input id="ls" type="range" min="4" max="64" value="12"></label><p class="out" id="out"></p></div>

Related patterns

Grainy Gradient Backgrounds

↗
Grainy Gradient BackgroundsColour Techniques

Gradient Interpolation Spaces

↗
Gradient Interpolation SpacesColour Techniques

Posterize Limited Palette

↗
Posterize Limited PaletteIllustration Styles