Apex › Data & encoding

How dithering fakes gray with black & white

How a photo appears on a display that can only draw black or white — e-ink, receipt printers, newsprint. Rounding each pixel to the nearer of black/white bands a gradient into flat blocks and loses all tone. Floyd–Steinberg keeps the tone by spreading each pixel’s rounding error onto its not-yet-drawn neighbours (7/16 right; 3/16, 5/16, 1/16 below), so a patch of two-colour dots averages back to the original gray. Real error-diffusion on a canvas: flip between threshold and dithering, and zoom in to see it’s just two colours.

More in Data & encoding