News for hackers. Stuff that matters.
Re:Why do we need dithering? by Dylan16807 on Thursday November 13, 2025 @06:42PM (#45922181)
The average desktop computer is running with 8 bit color depth the vast majority of the time, so find or generate basically any wide basic gradient and you'll see it.
Re:Why do we need dithering? by doormatt on Thursday November 13, 2025 @07:08PM (#45922347)
I think you mean 24 bit. 8 bit would only be 256 colors total.
Re:Why do we need dithering? by recursive on Thursday November 13, 2025 @07:20PM (#45922438)
8 bits for each of R G and B. So a grey-scale gradient indeed has only 256 colors available. Any gradient also will have about that many at most.
Re:Why do we need dithering? by kragen on Thursday November 13, 2025 @07:35PM (#45922528)
In most gradients, the transitions in R, G, and B are at different places.
Re:Why do we need dithering? by recursive on Thursday November 13, 2025 @08:47PM (#45922929)
True. Also, in most gradients, the full range of R G and B is not used.

In rgb(50, 60, 70) to rgb(150, 130, 120), there are only 200 total transitions.

Re:Why do we need dithering? by mrandish on Thursday November 13, 2025 @10:01PM (#45923380)
In terms of color spaces, SRGB (the typical baseline default RGB of desktop computing) is quite naive and inefficient. Pretty much its only upsides are its conceptual and mathematical simplicity. There are much more efficient color spaces which use dynamic non-linear curves and are based on how the rods and cones in human eyes sense color.

The current hotness for wide color gamuts and High Dynamic Range is ICTCP (https://en.wikipedia.org/wiki/ICtCp) which is conceptually similar to (https://en.wikipedia.org/wiki/LMS_color_space).

Re:Why do we need dithering? by recursive on Thursday November 13, 2025 @10:27PM (#45923518)
The same logic applies to any other color space with 24 total bits of resolution.
Re:Why do we need dithering? by kragen on Thursday November 13, 2025 @09:31PM (#45923210)
True!