Skip to content
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

JCh interpolation #9

Open
NateBaldwinDesign opened this issue Jan 27, 2020 · 0 comments
Open

JCh interpolation #9

NateBaldwinDesign opened this issue Jan 27, 2020 · 0 comments

Comments

@NateBaldwinDesign
Copy link

It would be nice to have JCh interpolation available for creating color maps. This is a nicer method of interpolation when you want to have a smoother transition across chroma from one color to the next.

This is similar to Lab/Lch interpolation outputs. Here is a comparison of interpolation in Jab vs Lab vs Lch from a blue to green color:
image
image

When visualizing this interpolation difference between cartesian and polar adaptations of color space, the polar takes a more curved transition. This can sometimes yield more aesthetically balanced color maps. Here is a visualization from top-down in LAB color space for the same scales (interpolated to black and white as well).
image
image

Lab interpolation in Lab space is purely linear, whereas Lch interpolation in Lab has curvature. This same curvature from a JCh interpolation would be desirable to include in this d3-cam02 library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant