Pekka Väänänen personal blog

Should you normalize RGB values by 255 or 256?

Let’s say you’re writing an image processing program. The program takes in an image, converts it to floating point, does some processing and finally saves the modified pixels to disk as 8-bit colors. The question today concerns how exactly the integer-to-float conversion should be done. There are two approaches which…
Points
330
HN comments
145
Submissions
1
Cited by
0 commenters

Games & GraphicsSoftware Engineering2026

On Hacker News

SubmittedTitle on HNPointsComments
Jun 1, 2026Should you normalize RGB values by 255 or 256? by pplanu330145

More from Pekka Väänänen

All 6 posts →

Related posts from the same era