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

Uniform color distribution #11

Open
IanMayo opened this issue Oct 31, 2019 · 0 comments · May be fixed by #35
Open

Uniform color distribution #11

IanMayo opened this issue Oct 31, 2019 · 0 comments · May be fixed by #35
Assignees

Comments

@IanMayo
Copy link
Member

IanMayo commented Oct 31, 2019

We currently generate random colors, but sometimes adjacent colors lack contrast.

Since we know the number of color permutations required (from the colorDict) we could instead provide a set of colors that are uniformly spread through the spectrum.

I think this is possible with the RGB spectrum, but I believe it's easier with the HSV color model. The "H" is for the Hue/Color. So if the range of "H" goes from 0..1, and we need 10 shades, we just generate them at 0.1, 0.2, ...

IanMayo added a commit that referenced this issue Nov 1, 2024
@IanMayo IanMayo linked a pull request Nov 1, 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.

2 participants