-
Notifications
You must be signed in to change notification settings - Fork 715
[css-images-4] Undefined Hue angle when interpolating from neutrals #4928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When interpolating a color whose hue is undefined with a color with a defined hue, it works well for the undefined hue to be considered equal to the defined one. A |
Hmm, I haven't fully fleshed out the idea, but could we do a chroma premultiplication (for I'll try a demo to see if it pans out. |
I've made an interactive notebook to try it out. It works surprisingly well! It handles graciously and continuously zero, and near-zero, chroma: But it's arguably not the "correct" interpolation with noticeably large chroma: |
That was my conclusion also. A smooth transition away from the |
Currently, the spec says
(we already have Achromatic colors converted to hue-ish spaces should treat hue as "missing", not NaN so don't focus on the specific This avoids the area of not-really-perceptually-uniform by making the cutoff between "has a defined hue" and "achromatic" very close to the achromatic axis, so we et well defined behavior in all cases. Is that sufficient, or is more needed? |
I think for the scope of In the context of |
Thanks for the confirmation regarding css color 4. Re-tagging to css images and leaving open, so we don't forget |
…andling of missing components, #4928
@danburzo wrote:
Yes, and the spec now says so explicitly.
I have just added that exact example to CSS Images 4. |
Edit: skip to here to see the interaction with gradient stop interpolation
Noticed by Mike Bostock in the context of D3, but applicable to the color modification functions in Color5, too:
There are lots of helpful examples
The text was updated successfully, but these errors were encountered: