Pixel Art Garden guide · Technique
Floyd–Steinberg dithering, explained
Dithering uses a pattern of nearby colors to suggest shades that are missing from a limited palette. Floyd–Steinberg is an error-diffusion method: it passes part of each pixel's color error forward through the image.
When a source pixel is mapped to its nearest available palette color, the difference between the source and chosen color is an error. Floyd–Steinberg distributes that difference to neighboring pixels using four weights: 7/16 to the next pixel on the same row, then 3/16, 5/16 and 1/16 across the next row. The later pixels are adjusted before their own palette color is chosen.
This creates a recognizable, fine-grained pattern. The pattern can make an image with few colors appear to contain smoother tonal transitions, but it does not create new colors. It trades smooth gradients for texture.
When dithering can help
Try dithering on skies, soft shadows, water or broad gradients where a restricted palette creates visible bands. It can also add an intentionally retro texture to a photo-derived image. The effect is usually most visible when the palette limit is low and the source contains gradual changes in tone.
It is not automatically an improvement. Small faces, typography, clean logos and high-contrast icons often benefit from clear solid color regions. Dithering may break up a delicate edge or make an already detailed image look grainy.
How to test it in Pixel Art Garden
- Choose a source with some smooth tonal areas.
- Set the pixel size and palette limit first; those determine the grid and available colors.
- Look at the preview with dithering off, then turn on Floyd–Steinberg dithering.
- Compare both versions at the intended display size, not only while zoomed in.
- Keep the cleaner version if the added pattern hides the subject.
Dithering and transparency
The Pixel Art Garden editor skips fully transparent grid pixels during color mapping and retains the source alpha values in the result. Transparent PNG export preserves existing transparency. It does not detect a background or make an opaque image transparent.
How it differs from ordered dithering
Floyd–Steinberg is an error-diffusion method: the pattern depends on earlier pixel decisions as the algorithm moves across rows. Ordered dithering uses a repeating threshold matrix, often producing a more regular pattern. Pixel Art Garden currently implements Floyd–Steinberg only; the dithering switch does not select between several algorithms.
Common problems
The result looks too noisy
Turn dithering off, increase the palette limit or choose a larger pixel size to simplify detail. If the source itself is heavily textured, start with a cleaner crop or illustration.
Gradients still look harsh
Try a few more colors and compare dithering on and off. Some gradients need more palette steps; dither patterns cannot rescue every source or palette.
Edges look unclear
Check the silhouette, value contrast and pixel size. The dithering toggle is a texture treatment, not an edge detector or a background-removal feature.
Related guides
Learn how to choose a pixel art color palette, read the photo conversion guide or try the control in the editor.