1 unstable release
new 0.1.0 | Oct 21, 2024 |
---|
#11 in #attempt
149 downloads per month
4KB
Iterator over colors which are distributed evenly according to the equidistribution theorem. Attempts to make the next color look as different as possible from all of the previously generated colors. Compatible with the rgb
crate. Possible uses include assigning colors to players, where the total number of players is unknown.
This crate makes no guarantees about readability for people with color blindness or other visual impairments.
Inspired by this stack exchange post, using oklab to better predict the intensity.
Dependencies
~195KB