AI-generated pixel art image: an evening sky made of four color bands from dark blue to glowing mint, blended with checkerboard and dot patterns, above the solid black silhouette of hills with a small tower Five tiles of 8 by 8 pixels in two colors with growing density: 0 %, 25 %, 50 % as a checkerboard, 75 % and 100 %, each with the number of set pixels out of 64

Dithering means placing two colors in a pattern so the eye mixes them into a third. A checkerboard of dark green and light green reads as a middle green from a distance, and you never had to add that green to your palette. On old hardware with only a handful of colors, that was often a necessity.

Today nothing forces you to do it. The article Dithering for Pixel Artists on Pixel Parmesan says it bluntly: “Dithering is rarely, if ever, necessary in modern contexts”. And yet many beginners reach for it early, and the result is often a sprite covered in checkerboard that reads as static.

The Pixel Art Fundamentals cover dithering in one paragraph, and Pixel Art Shading mentions it as a clean-up tool. This tutorial goes deeper. You’ll draw the basic patterns by hand, learn the two jobs dithering can do, pick a pattern that fits your sprite size, size a transition by the contrast of its two colors, and spot the places where dithering hurts more than it helps. The rules come from practice tutorials, not from a standard, so treat them as starting points.

What You’ll Need

  1. A pixel art editor (I use Aseprite. If you’re new to it, see the Aseprite beginner guide.)
  2. The basics from Pixel Art Fundamentals and Pixel Art Shading
  3. A practice canvas of 64×64 pixels and two colors that sit next to each other in a color ramp
  4. 30 minutes

Step 1: Draw the Three Basic Patterns by Hand

Fill an area of 8×8 pixels with your darker color, then set every second pixel to the lighter color, shifted by one pixel in every row. That’s the checkerboard. In The Pixel Art Tutorial on Pixel Joint, the author cure calls it “a 50/50 dither, also known as a 50% dither or a checkerboard pattern”.

Count it: 8×8 pixels are 64 pixels, and the checkerboard sets 32 of them. Now draw its two neighbors from the diagram at the top:

  • 25 %: one light pixel in every block of 2×2 pixels. That’s 16 of 64.
  • 75 %: the inverse, three light pixels in every 2×2 block. That’s 48 of 64.

Together with the two flat colors you have five density steps. For most dithering you do by hand, that’s the whole toolbox.

One warning. About the patterns between a flat color and the checkerboard, cure writes: “These patterns are often easier to spot than a 50% dither though, so be careful!” A checkerboard tends to melt into a tone. The 25 % pattern tends to stay what it is, a field of single dots.

Practice: draw the five steps next to each other as one strip, each 8 pixels wide, and zoom out to 100 %. That’s your first dithered gradient.


Step 2: Decide Which Job the Dithering Does

The Pixel Parmesan article separates two uses. The patterns are the same in both. The job is different.

Fill dithering is, in the article’s words, “used to create an additional color by combining two pre-existing colors”. You fill a whole form or area with one pattern, and that area becomes your new color. According to the article, this is most useful for 1-bit pieces or pieces with a low color count.

Transitional dithering is “used to smooth a transition between two colors or soften an edge”. Here the pattern only sits where two color areas meet. The article adds that for softening edges it “generally works best when used sparingly”.

Two uses of the same checkerboard: in A a box whose front is filled completely with the pattern as a third tone, in B a ball with a narrow checkerboard band along the shadow edge, each with a small version next to it

Both examples use the same two colors and the same checkerboard. In A, the box needs three tones for its three faces, the palette only has two, so the pattern stands in as the third. In B, the ball already has a light and a dark side, and the checkerboard is only a narrow band that softens the step between them.

Before you place a single dithered pixel, ask which of the two you’re doing:

  • “I need a color I don’t have.” That’s fill. The pattern covers the whole area evenly and ends in clean edges.
  • “The step between these two colors is too hard.” That’s transition. The pattern stays narrow and sits on the border.

If the answer is neither, you don’t need dithering in that spot. And if the answer is “fill” for most of the sprite, cure has a better idea: “If dithering is covering half your sprite, it’d probably just be better if you added a new color to the palette.”


Step 3: Let Bayer Put the Pixels in Order

There’s a system behind the patterns from Step 1, and its name shows up in many editors: the Bayer matrix, named after Bryce Bayer. The Wikipedia article on ordered dithering traces it back to a conference paper of his from 1973 and prints the matrices in the form I use here.

A Bayer matrix is a small grid of numbers. In the diagram, I read the numbers as the order in which the pixels of a pattern switch on.

The Bayer matrices as numbered grids with the patterns they produce: Bayer 2 by 2 with five patterns from 0 of 4 to 4 of 4 pixels set, Bayer 4 by 4 with seventeen patterns from 0 of 16 to 16 of 16

The 2×2 matrix holds 0 and 2 in the top row, 3 and 1 in the bottom row:

  1. Switch on pixel 0, and one pixel in every 2×2 block is set. That’s your 25 % pattern.
  2. Add pixel 1, diagonally opposite. That’s the checkerboard.
  3. Add pixel 2, and you’re at 75 %.
  4. Add pixel 3, and the area is solid.

So Bayer 2×2 isn’t a new pattern. It’s the steps you just drew by hand, in a fixed order, with three steps between the two flat colors.

The 4×4 matrix does the same with 16 numbers from 0 to 15. It produces 17 patterns, so there are 15 steps between the two flat colors. Steps 4, 8 and 12 are the three patterns you already know. The ones at both ends are very sparse: step 1 sets a single pixel in every block of 4×4 pixels.

You don’t have to memorize the numbers. What matters is the trade: a bigger matrix gives you more steps, and every step needs more room.


Step 4: Match the Pattern to the Sprite Size

AI-generated pixel art image: an evening sky in four colors from dark indigo through blue-violet and dusty rose to peach at the horizon, each transition a checkerboard band of two colors with sparse rows of dots above and below it, in front dark hills with three trees and no pattern

A pattern only blends when it repeats often enough. You can check that with simple arithmetic:

  • A 4×4 pattern fits 4 times across a 16×16 sprite (16/4), before you subtract the outline. A 2×2 pattern fits 8 times (16/2).
  • The 4×4 pattern fits 16 times across a 64×64 background tile (64/4).

The dithering guide on Pixnote, a pixel art tool, turns this into a rule of thumb: “checkerboard or Bayer 2×2 at 16×16, Bayer 4×4 for backgrounds of 64×64 and up”. The guide gives no evidence for the exact sizes, so read them as a starting point. The direction fits the Pixel Parmesan article, which says that some sprites are simply too small to dither.

Here’s how I’d turn that into a first choice:

  • 16×16 sprite: no dithering, or a single row of checkerboard.
  • 32×32 sprite: between the two sizes the guide names. Try the checkerboard first, and 25 % and 75 % only in areas wide enough to repeat them a few times.
  • 64×64 and up, backgrounds: room for the steps of Bayer 4×4, for example in a sky.

Choosing the Right Resolution and Sprite Size compares sprites of 16, 32 and 64 pixels.


Step 5: Size the Transition by Contrast

How many steps does a transition need? The Pixel Parmesan article gives the rule of thumb: “the greater the contrast between the two colors you are blending, the more dithering steps you will need”. cure says the same from the other side: “The lower the contrast is between the two (in hue or in value), the less harsh the dithering will be”.

The same four transitions for two similar greens on the left and for a dark blue and a pale yellow on the right: a hard edge, one checkerboard band, three bands with 25, 50 and 75 %, and a real in-between color with a checkerboard band on each side

Each strip in the diagram is 40 pixels wide. Column A uses two neighboring greens from one ramp, column B a dark blue and a pale yellow.

  • Row 1 is the hard edge, without dithering.
  • Row 2 adds one checkerboard band, 8 pixels wide.
  • Row 3 uses three bands with 25, 50 and 75 %. Now 24 of the 40 pixels are dithered.
  • Row 4 follows a tip from the Pixel Parmesan article for high-contrast gradients: keep the same few patterns and add in-between color steps. Here it’s one real in-between color with a checkerboard band on each side.

Look at the small versions under the strips. In column A, row 2 is already enough, because the two greens are so close that one band melts into a tone. In column B, even row 3 doesn’t blend. You see dots, then a checkerboard, then dots again. One extra color in row 4 does more than two extra patterns.

For your own transitions, I’d start like this:

  1. Neighboring colors in a ramp: one checkerboard band, or nothing.
  2. Clearly different colors: 25, 50 and 75 %, with enough width for every band to repeat a few times.
  3. Colors far apart: add a color first, then dither between neighbors.

Color Theory for Games helps you choose the in-between color.


Step 6: Know Where Dithering Hurts

The same 16 by 16 pixel slime three times: in A checkerboard covers most of the body and frays the outline, in B the outline is solid with four pixels of checkerboard on the shadow edge, in C there is no dithering, with a small version under each

The three slimes use the same three greens. In A, checkerboard covers most of the body and runs out onto the outline. In B, the outline is solid and only four pixels of checkerboard sit on the shadow edge, none of them touching the outline. C has no dithering at all. In the small versions, A turns into noise. B and C read as a slime, and you can barely tell them apart.

That’s the honest result for a sprite this small. The sources name the danger zones:

Small and animated characters. The Pixel Parmesan article is clear: “I would not recommend dithering for most character sprites, especially those that will need to be animated”. Pixnote gives a reason for the animation part: if the pattern shifts between frames, the surface shimmers. Keep that in mind before you start a walk cycle.

Outlines. Pixnote puts it in one line: “Don’t use on character outlines (breaks silhouette)”. Its advice is to start one pixel inside the outline. The bottom and the right side of slime A show why: the outline has gaps, and the shape frays. More on that in Silhouette and Readability.

The edge to the background. The same guide warns: “Never dither against the background.” A pattern that mixes a sprite color with a background color only works in front of that one background.

More than two colors at once. “Don’t dither 3+ colors simultaneously (becomes chaotic)”, says Pixnote. A pattern is a mix of two colors. Put a third one into the same area, and the eye no longer reads a tone.

Texture you didn’t plan. The Pixel Parmesan article notes that extraneous dithering “often creates visual noise or the unwanted illusion of texture”. On a surface that should look smooth, a pattern reads as roughness. If you want that roughness, fine, as long as it’s a decision.


Step 7: Dither Faster in Aseprite

Placing a checkerboard pixel by pixel is good practice and slow work. In Aseprite, the documented shortcut is a pattern brush:

  1. Draw a small piece of your pattern, for example 2×2 pixels of checkerboard.
  2. Choose Edit > New Brush (Ctrl+B) and mark that piece on the canvas. The Aseprite docs on brushes describe the steps.
  3. Paint with the new brush. A dropdown in the context bar controls how the pattern is drawn. The docs list Pattern aligned to source, Pattern aligned to destination and Paint brush.

According to the docs, Pattern aligned to source aligns the pattern to the place it was copied from. Test that option first, because separate strokes should then line up into one continuous pattern.

Aseprite can also dither for you. For the Gradient tool (Shift+G), the docs on the context bar list four dithering options: no dithering and the Bayer matrices 2×2, 4×4 and 8×8. Those are the matrices from Step 3.

Whatever tool you use, treat the result as a first draft, like a line from the Line tool in Clean Pixel Art Lines, and clean up the edges by hand.


Step 8: Check at the Size Your Players See

Dithering depends on viewing size. The Pixel Parmesan article warns that “the pattern will become more obvious as you zoom in or as the image is displayed at a larger scale”.

That matters for games, because pixel art is rarely shown at 100 %. A game with a base resolution of 640×360 runs at ×3 on a 1080p screen, as the resolution tutorial works out, so every pixel of your checkerboard becomes a block of 3×3 screen pixels.

Old screens were kinder. Both Pixel Parmesan and cure point out that CRT monitors blurred the image and hid the patterns. On a sharp display, nothing does that for you.

So check twice:

  1. At 100 % in Aseprite’s Preview Window. Does the pattern melt into a tone?
  2. At the scale of your game, for example 300 %. Is it still a tone, or do you see the pattern?

A visible pattern isn’t automatically wrong. It can be the retro look you’re after. But it should be a look you chose.


Common Mistakes

Dithering because it’s pixel art. Ask first which job the pattern does: fill or transition.

Too much of it. If half the sprite is checkerboard, add a color to the palette.

High contrast, few steps. A single checkerboard between a very dark and a very light color stays a checkerboard. Add an in-between color.

Sparse patterns on small sprites. Single scattered pixels read as noise on 16×16.

Dithering the outline or against the background. Gaps break the silhouette, and the mix only works in front of one background. Start one pixel inside.

Patterns on animated characters. A pattern that shifts from frame to frame shimmers. Use flat shading for anything that moves.

Checking only zoomed in. Every pattern looks tidy at 800 %. Look at 100 % and at the scale of your game.


Quick Reference

  • Patterns: 25 % is one pixel per 2×2 block, 50 % is the checkerboard, 75 % is the inverse of 25 %
  • Two jobs: fill replaces a missing color, transition softens an edge
  • Bayer 2×2: three steps in between. Bayer 4×4: 15 steps in between
  • Size: 16×16 none or a little checkerboard, 64×64 and up has room for Bayer 4×4
  • Contrast: close colors need one band or none, distant colors need an in-between color first
  • Keep out of: outlines, the edge to the background, animated characters, areas with three colors
  • Aseprite: pattern brush with Edit > New Brush (Ctrl+B), alignment in the context bar

What You’ve Learned

  • How to draw the 25, 50 and 75 % patterns by hand
  • How to tell fill dithering from transitional dithering
  • What the numbers in a Bayer matrix mean and how many steps 2×2 and 4×4 give you
  • How to match the pattern to the sprite size and the number of steps to the contrast
  • Where dithering hurts: outlines, the edge to the background, animated characters

Next up: open a background you’ve already shaded and find the hardest step between two colors. Try one checkerboard band there and compare it with the flat version at 100 %. If the flat version wins, keep it. Pixel Art Shading shows how far flat colors alone can take you.


Sources