Hacker News new | ask | show | jobs
by 2001zhaozhao 15 days ago
There are only two real solutions after factoring in the need to preserve black as zero.

They are "rgb / 255.0" vs. "rgb / 256.0". Both have different tradeoffs. Pick your poison. (If you're using a 8 bit display signal then you better match whatever value the OS picked for the mapping back to the display, so your RGB values pass through unchanged)