#color #theorem #iterator #distributed #attempt #evenly #equidistribution

equidistributed-colors

Iterator over colors which are distributed evenly according to the equidistribution theorem

1 unstable release

new 0.1.0 Oct 21, 2024

#11 in #attempt

Download history 149/week @ 2024-10-20

149 downloads per month

MIT and CC-PDDC licenses

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