4 ms·
Perceptually-uniform color spaces such as CIE L*a*b* (and especially more modern alternatives, such as Oklab [1]) are better for gradients. This page has a simp
by kdrag0n 5y ago
Perceptually-uniform color spaces such as CIE L*a*b* (and especially more modern alternatives, such as Oklab [1]) are better for gradients. This page has a simple demo: https://raphlinus.github.io/color/2021/01/18/oklab-critique.html https://raphlinus.github.io/color/2021/01/18/oklab-critique....
This Observable notebook goes into more detail: https://observablehq.com/@mattdesl/perceptually-smooth-multi-color-linear-gradients https://observablehq.com/@mattdesl/perceptually-smooth-multi...
Gamma is more or less a poor man's perceptual color space, but I don't think it's very useful for that nowadays. There are much better options for image processing that requires perceptual uniformity (which is not everything, e.g. blurring is usually better done in linear RGB), and when you don't need that, I'm not aware of much reason to use it other than limited precision and sRGB being a ubiquitous device color space.
[1] https://bottosson.github.io/posts/oklab/ https://bottosson.github.io/posts/oklab/