News for hackers. Stuff that matters.
Re:What every coder should know about gamma by ars on Thursday September 22, 2016 @01:33AM (#12554606)
I think you are supposed to add the colors then divide by two to keep the brightness constant.

This is not how light behaves (it doesn't divide by two on a wall), but it's what you need to make a gradient.

Re:What every coder should know about gamma by johnnovak on Thursday September 22, 2016 @06:06PM (#12560730)
Not divide by two; you have to use the gamma transfer curve.