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

count produces error with certain hue values #161

Open
mattrossman opened this issue Oct 23, 2023 · 0 comments · May be fixed by #164
Open

count produces error with certain hue values #161

mattrossman opened this issue Oct 23, 2023 · 0 comments · May be fixed by #164

Comments

@mattrossman
Copy link

Reproduction on JSFiddle: https://jsfiddle.net/mattrossman/koph7sub/1/

console.log(randomColor({ hue: "#EF1FE8", count: 2 }))

produces:

Uncaught TypeError: range is undefined

The trace points here

var max = range[1] || 1;

@hirotomoyamada hirotomoyamada linked a pull request Feb 8, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant