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

How can I exclude a color? #22

Open
vjpr opened this issue Nov 15, 2022 · 3 comments
Open

How can I exclude a color? #22

vjpr opened this issue Nov 15, 2022 · 3 comments

Comments

@vjpr
Copy link

vjpr commented Nov 15, 2022

I want to exclude red colors because they look like errors.

@dastoori
Copy link
Owner

There can be an excludeHue option added for this to exclude any hue range.

For example:

uniqolor(123, { excludeHue: [[0, 20], [325, 359]] })

Does this work for your use case?

@vjpr vjpr closed this as completed Nov 15, 2022
@vjpr vjpr reopened this Nov 15, 2022
@vjpr
Copy link
Author

vjpr commented Nov 15, 2022

Would be perfect.

@dastoori
Copy link
Owner

The excludeHue option is added to the random() method on v1.1.0.
For uniqolor() one of the main algorithms needs to be modified, so I keep this issue open and need to think more before adding it.

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

No branches or pull requests

2 participants