You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @NullVoxPopuli, the problem might be produced by the fact that the browser gradient is in Oklch and the Culori JS code uses lch = CIELCH. Switching to oklch in interpolate() should give you a more consistent result.
There is also a bit of an illusion, where, even though these lines are solid colors, they still look like they have gradients -- unless I turn my screen sideways.
There is also a bit of an illusion, where, even though these lines are solid colors, they still look like they have gradients -- unless I turn my screen sideways.
For example, I have:
and then in javascript:
which generates something like this:

the color bands are obvious here -- but they should be pretty invisible, even though they are a couple rem wide.
the end-colors on the very left and very right are perfect, so it's the interpolation of the middle 3 colors that seems wrong.
Is there an existing easing function that matches the browser behavior?
I've deployed this here:
And my code is here:
The text was updated successfully, but these errors were encountered: