RGB normalization: why 255 beats 256 in practice
Hacker News·1w·pplanu
A deep dive into a deceptively simple question: when converting 8-bit RGB values to 0-1 range, dividing by 255 vs 256 matters for precision and spec compliance. For anyone building graphics tools or color-handling libraries, this clarifies which choice avoids rounding errors and matches expected output.
Original story
Read the original on Hacker NewsRelated stories
AI
Maker deliberately limits coding agents to keep humans in the loopHacker News Show HN·3d·noahfradin


Devtools
Developer traces GPS jamming source across Europe, identifies transmitter locationHacker News·3d·mimorigasaka