Skip to content

Dithering · 4 min read

Pixel art dithering: patterns, gradients and when to use them

Dithering mixes two colours in a pattern so the eye reads a third tone between them. Used sparingly it adds texture and smooth transitions to a small palette. Used everywhere it turns into noise.

Open the studio in a new tab ↗ and follow along.

1. What dithering does

Dithering places pixels of two colours in a regular pattern. From a normal viewing distance the eye blends them, so a checkerboard of dark and light blue reads as a mid blue that is not in your palette. Pixel artists use it to:

  • make a smooth-looking transition between two shades in a small palette;
  • suggest texture, such as rough stone, sand, foliage or fabric;
  • fake transparency or a soft glow where the palette has no in-between colour.

Dithering always adds visual noise, so the skill is in using it where it earns its place.

2. Place a pattern by hand

The simplest dither is a 50% checkerboard: alternate two colours pixel by pixel, like the squares of a chessboard. Lighter patterns, such as one pixel in four, give a 25% blend. Line up a few bands of increasing density and you get a stepped transition between two colours.

Draw hand dithering with the Pencil at brush size 1. Turn on the Grid in the View menu so you can see each pixel, and zoom in far enough that you do not misplace a dot. Keep patterns regular. A stray pixel in a checkerboard is much more noticeable than in a flat area.

The Fill tool also has a dithered fill option. It fills an area with a 50% checker of your front and back colours, which is a quick way to lay down an even pattern before you refine its edges by hand.

3. Fill with a dithered gradient

The Gradient tool (press G twice from another tool) draws a linear or radial gradient from your front colour to your back colour or to transparency. Its options include four styles:

  • Smooth, a normal continuous gradient;
  • Dither 2×2, Dither 4×4 and Dither 8×8, which use ordered (Bayer) patterns to build the gradient from just the two colours.

The 2×2 pattern gives a few coarse steps, while 8×8 gives many fine ones. The gradient covers the whole canvas, so make a selection first to limit it to a sky, a shadow or a glow. With palette lock on, a smooth gradient snaps to your palette, which produces hard bands. Choose a dithered style when you want the transition to stay soft.

4. Dither while reducing colours

When the editor converts an image to fewer colours, it can dither for you. Canvas → Convert to indexed colour… and Canvas → Remap to palette… both offer Dither (Floyd–Steinberg). Instead of a fixed pattern, Floyd–Steinberg spreads each pixel's rounding error to its neighbours. That keeps the overall tone of photos and painted images, at the cost of a speckled, less tidy look.

Try the conversion with and without dithering and compare. For a photo turned into pixel art, dithering often keeps faces and skies from breaking into blotches. For crisp sprites and flat-shaded art, the undithered version is usually cleaner.

5. Know when to leave it out

Dithering works against you in a few common situations:

  • Tiny sprites. On a 16 × 16 character there is no room for a pattern to read as a blend; it just looks like noise. Use a flat in-between colour instead.
  • Animation. Patterns that shift from frame to frame shimmer. Keep dithered areas still, or move them as one block.
  • Scaled or filtered output. If a game engine or website smooths your sprite when enlarging it, the pattern turns into a muddy blur. Export at whole-number scales with hard pixels.
  • Animated GIFs. The GIF export reduces colours without dithering of its own. If you need a dithered look, add it to the artwork before you export.

A good rule: use dithering for large, flat areas and gradual transitions, and keep characters and small details clean.