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

Is there a simple way to interpolate colors? #23

Open
solarjoe opened this issue Apr 10, 2019 · 2 comments
Open

Is there a simple way to interpolate colors? #23

solarjoe opened this issue Apr 10, 2019 · 2 comments

Comments

@solarjoe
Copy link

Is it possible to interpolate the color at a specific value between 0 and 1 for a colormap?

E.g. like with this package

[0, 0.25, 0.5, 0.75, 1].map(viridis)

@ichko
Copy link

ichko commented Mar 27, 2021

+1! I also want this!

@ichko
Copy link

ichko commented Mar 28, 2021

@solarjoe You can use this module to interpolate - https://www.npmjs.com/package/color-interpolate 🙌

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

2 participants