culver_fly
Thanks for the video, so does it mean that if I want to blend a gray of 64 and a gray of 191, simply adding them up and getting 255 is wrong and I have to square them and root again to get the correct value of 201?
Just to make sure I'm getting it correct, when the monitor displays the color of 64 and 191, the color that our eyes perceive doesn't result to a pure white when they're blended together?
Both values are wrong; why would blending a dark shade of gray with a light shade of gray produce an even lighter shade of gray (or white)?
The naive way is to average the two values, which gives you 128 (rounded up). The correct way is to convert both values to the 0-1 range (divide by 255), square both of them, average them, square root the average, and multiply back by 255, which gives you the final value of ~159. The squaring/rooting only works in the 0-1 range (since the result will also be within the 0-1 range), and the 0-255 value of a color channel is meant to represent a value within that range.
(Note: you can do the 0-1 conversion with the naive way too, but it doesn't change the result)