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

Property to check if color is clipped or not #86

Closed
ericvoid opened this issue Oct 13, 2015 · 2 comments
Closed

Property to check if color is clipped or not #86

ericvoid opened this issue Oct 13, 2015 · 2 comments

Comments

@ericvoid
Copy link

Your pickers and palette generators can detect when a color is clipped. Is there a property or method to check it?

@gka
Copy link
Owner

gka commented Apr 4, 2017

unfortunately this information gets lost the way chroma.js is currently set up. I agree it would be nice to keep it as something like color.isClipped().

@gka
Copy link
Owner

gka commented Apr 4, 2017

added color.clipped() in 1.3.1.

see documentation https://gka.github.io/chroma.js/#color-clipped

@gka gka closed this as completed Apr 4, 2017
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