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

equidistributed-colors

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

1 unstable release

0.1.0 Oct 21, 2024

#7 in #theorem

Download history 121/week @ 2024-10-16 36/week @ 2024-10-23 7/week @ 2024-10-30 5/week @ 2024-11-06

169 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