You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, ...
The text was updated successfully, but these errors were encountered:
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, ...
The text was updated successfully, but these errors were encountered: