Replies: 3 comments 2 replies
-
I have made a little PoC change to The white to black transition quite clearly shows the different perceptually smoother transition. So again, is that of interest? |
Beta Was this translation helpful? Give feedback.
-
Important to note here that This is subjective, but in that example I personally prefer the bottom version. Are you sure top is OkLab? |
Beta Was this translation helpful? Give feedback.
-
It is but I wrongly de-gamma'd before and after leading to artifacts. Here it is without that, again top OkLab, bottom as it is now with iced 0.10 (sorry for flipped text, wanted to have the same arrangement as above): Yes, it's less pronounced for certain color combinations but still very visible for black to white (smoother transition) and yellow to blue (no hue shift). You can check with Raph Levien's tool (make sure to expand the list of color spaces to get access to linear) how gradients compute, it matches pretty much 1:1. |
Beta Was this translation helpful? Give feedback.
-
I noticed that iced computes the gradient in the
linearsRGB color space which makes for some very unpleasant gradients when going from very bright to very dark colors. This issue has been discussed plenty of times (see Björn Ottosson's post for an explanation and Raph Levien's interactive tool for alternative color space comparisons) and it seems that Oklab has become somewhat of a defacto standard. So my question is, if the current implementation could be changed or at least a second gradient implementation be added?Beta Was this translation helpful? Give feedback.
All reactions