←back to thread

855 points tontonius | 1 comments | | HN request time: 0.001s | source
Show context
MontagFTB ◴[] No.45013642[source]
> The way gradients work in OKLCH is pretty different compared to sRGB. In sRGB, gradients are calculated in red, green, and blue values, which often leads to muddy midpoints and uneven brightness.

I always understood those “muddy midpoints” as a failure to properly gamma correct the interpolation between two (s)RGB colors. Is that happening here, or is the mud coming from something else?

replies(1): >>45014473 #
1. kevin_thibedeau ◴[] No.45014473[source]
Grays run along a diagonal axis of the RGB cube after stripping gamma off. A straight line through the cube will brush by it. This is enhanced when transitioning from a primary (green) to an opposite corner (magenta).