Dithering Basics: How Black-and-White Patterns Fake Shades

Dithering creates the illusion of gray shades by arranging black and white pixels into patterns whose density reflects the original brightness. Ordered dithering achieves this by comparing pixel brightness to a threshold map and mapping pixels to black or white accordingly. Future parts will explore threshold-map construction methods and the error diffusion approach.
Key Points
- Dithering simulates shades by arranging black and white pixels so their density creates the perception of gray levels.
- Simple nearest-color mapping (black or white) causes abrupt transitions and lost detail.
- Ordered dithering uses a threshold map: compare each pixel’s brightness to a threshold to decide black or white.
- Extending/tiling the threshold map across the image produces consistent patterns that match tonal values.
- Future parts will cover threshold-map generation methods and the error diffusion algorithm, each yielding distinct visual styles.
Sentiment
The Hacker News community is overwhelmingly positive about this article. Commenters praise the beautiful interactive presentation and find the topic genuinely engaging. Technical debates about definitions and theory are conducted constructively, with experts sharing deep knowledge. Minor criticisms about the presentation format and completeness are acknowledged but don't diminish the overall enthusiastic reception.
In Agreement
- The visual, interactive presentation is spectacular and makes dithering concepts intuitive
- Ordered dithering is a legitimate and historically established form of dithering
- Dithering remains highly relevant for modern applications like temporal dithering in displays, printing, and bit-depth conversion
- The article serves as an excellent entry point for understanding how black-and-white patterns simulate grayscale
Opposed
- Ordered dithering isn't 'true' dithering because it lacks noise and produces visible banding; error diffusion is the real technique
- The presentation format is harder to skim than a traditional blog post and forces sequential reading
- The threshold map explanation is confusing and incomplete without covering how the map values are chosen
- Reading text over the animated dithering background is physically uncomfortable for some readers