Pixel Magic: The Dithering Effect

How do games and images fake millions of colors with just a few?

1

The Banding Problem

When you only have a few colors, gradients look like ugly stairs. This is called "banding."

Limited Palette Only 4 colors allowed
Zoomed:
Full Gradient Unlimited colors
Zoomed:

Why Does This Happen?

With only 4 colors, you can only show 4 shades. Everything in between gets rounded to the nearest color.

The Big Question

How can we make the left look more like the right... without using more colors?

Fun Fact

The original Game Boy could only display 4 shades of green, yet artists made beautiful games!

2

Ordered Dithering

A magic grid of numbers tells each pixel whether to round up or down. This creates a pattern that fools your eye!

This is a 4x4 Bayer matrix. Higher numbers = more likely to use the lighter color.

No Dithering Hard color bands
Ordered Dithering Bayer matrix pattern

How It Works

At each pixel, compare the desired brightness to the matrix value. If higher, use light color. If lower, use dark.

The Pattern

The repeating pattern creates zones of mixed pixels that your eye blends together into intermediate shades.

3

Error Diffusion

Floyd-Steinberg dithering spreads the "error" from rounding to neighboring pixels. The result looks more organic!

Watch how errors flow to the right and down, creating an organic pattern.

Ordered Structured pattern
Floyd-Steinberg Organic diffusion

The Error

When you round a color, the difference between what you wanted and what you got is the "error."

Spreading It Out

That error gets distributed: 7/16 right, 3/16 down-left, 5/16 down, 1/16 down-right.

Fun Fact

Floyd-Steinberg was invented in 1976 and is still used today in image processing software!

4

Pattern Dithering

Pixel artists hand-craft dithering patterns for stylized shading. Each pattern has its own character!

Dark Color
Light Color

Click different patterns to see how they create different moods and textures.

Checkerboard

The classic 50/50 mix. Creates a perfect middle tone between two colors.

Crosshatch

Mimics traditional pen-and-ink shading. Great for a hand-drawn look.

Stipple

Random-ish dots create a grainy, textured appearance. Used in comics!

5

Dithering in the Wild

From retro games to GIFs to newspaper printing, dithering is everywhere!

Game Boy

4 shades of green, endless creativity

NES/SNES

Limited palettes per sprite

GIF Files

Max 256 colors, needs dithering

Newspapers

Halftone dots = analog dithering

Why It Matters Today

Pixel art games use dithering for that authentic retro feel. It's an art form!

The Eye's Trick

Your brain naturally blends nearby colors together. Dithering exploits this!

Fun Fact

The word "dither" originally meant "to tremble" - because the pixels tremble between two colors!

Dithering Master!

You now understand how dithering creates the illusion of more colors using patterns, matrices, and error diffusion.

0
Patterns Tried
0
Pixels Dithered
0
Time Exploring

The Banding Problem

Limited colors create visible steps called "banding" in gradients.

Ordered Dithering

A threshold matrix decides which color to use at each pixel position.

Error Diffusion

Floyd-Steinberg spreads rounding errors to neighboring pixels for organic results.

Pattern Dithering

Hand-crafted patterns like checkerboard and crosshatch create stylized shading.

Retro Magic

Old games and GIFs used dithering to display more colors than hardware allowed.

Ready to Create?

Put your new knowledge into practice!

More Discoveries

Suggest a Correction