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

Bad CMYK #41

Closed
dy opened this issue Oct 13, 2014 · 2 comments
Closed

Bad CMYK #41

dy opened this issue Oct 13, 2014 · 2 comments

Comments

@dy
Copy link

dy commented Oct 13, 2014

var c = new Color('black');
c.cmyk(); //{c: NaN, m: NaN, y: NaN, k: 100}

:(

@dy
Copy link
Author

dy commented Oct 17, 2014

I’ve found out that this happens because of division by zero in rgb2cmyk. Fixed here.

@harthur harthur closed this as completed Oct 17, 2014
@harthur
Copy link
Collaborator

harthur commented Oct 17, 2014

Thanks!

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