News for hackers. Stuff that matters.
Re:Don’t Convert SRGB U8 to Linear U8 by kazinator on Monday March 12, 2018 @06:51PM (#16572417)
If you want to interpolate between colors, anything-RGB is wrong, even for the best value of "anything". You want the LAB space, or something along those lines.

If we interpolate between one RGB color to another color of equal intensity, the intensity along the interpolation will not be constant.

Re:Don’t Convert SRGB U8 to Linear U8 by mark-r on Monday March 12, 2018 @11:17PM (#16573674)
The gradient from pure red to pure green in linear RGB space isn't bad at all. The problem comes when you interpolate between endpoints of different intensities.

LAB isn't perfect either. Depending on your endpoints it can transition through colors that are hardly related.

Re:Don’t Convert SRGB U8 to Linear U8 by 05greg on Tuesday March 13, 2018 @06:50AM (#16575079)
Yeah it seems like you'd want to interpolate along an equiluminant plane using a colourspace that separates chrominance and luminance (and is ideally perceptually uniform)