sanitation@lemmy.today to Programming@programming.dev · 8 days agoShould you normalize RGB values by 255 or 256?30fps.netexternal-linkmessage-square22linkfedilinkarrow-up144arrow-down11
arrow-up143arrow-down1external-linkShould you normalize RGB values by 255 or 256?30fps.netsanitation@lemmy.today to Programming@programming.dev · 8 days agomessage-square22linkfedilink
minus-squareSolemarc@lemmy.worldlinkfedilinkarrow-up32arrow-down1·8 days agoMy opinion on this will always be that there are only 2 valid answers; 0-255 or 0-1 Either a u8 or a float.
minus-squareferret@sh.itjust.workslinkfedilinkEnglisharrow-up10·8 days agoI thought the same thing too, but the article doesn’t disagree. Article is actually about converting between the two. It’s an interesting read, I encourage it.
My opinion on this will always be that there are only 2 valid answers;
0-255 or 0-1
Either a u8 or a float.
I thought the same thing too, but the article doesn’t disagree. Article is actually about converting between the two. It’s an interesting read, I encourage it.