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

avoid black and white #12

Closed
L1cardo opened this issue Jun 16, 2020 · 1 comment
Closed

avoid black and white #12

L1cardo opened this issue Jun 16, 2020 · 1 comment

Comments

@L1cardo
Copy link

L1cardo commented Jun 16, 2020

Is there a way to get a random color except black, white and gray?

Sent from PPHub

@onevcat
Copy link
Owner

onevcat commented Jun 16, 2020

Maybe try a different luminosity instead of all random..Such as:

randomColor(hue: .random, luminosity: .light)

should give you a nice result.

Also, remember to run and play with the demo app in the repo to get closer to what you want.

@onevcat onevcat closed this as completed Jun 16, 2020
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