So somehow, 1.5 and 1 are mapped to 255, 0.5 to 128, and -0.5 to 0. There was no need to do any clamping process on anything but the -0.5, right? Was this clamping algorithm given somewhere? I think that's what I don't understand right now.
One way to do it is to take each of the floating point colour component values, multiply it by 255, then check if it exceeds the allowable limits. If it's less than 0 make it 0, or if it's greater than 255, make it 255.
Last Edit: Dec 29, 2018 2:11:48 GMT by fs: Fix typo