equidistributed-colors

Crates.ioequidistributed-colors
lib.rsequidistributed-colors
version0.1.0
sourcesrc
created_at2024-10-21 17:58:00.403826
updated_at2024-10-21 17:58:00.403826
descriptionIterator over colors which are distributed evenly according to the equidistribution theorem.
homepage
repositoryhttps://github.com/rpitasky/equidistributed-colors
max_upload_size
id1417765
size3,520
Ryan Pitasky (rpitasky)

documentation

README

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.

Commit count: 2

cargo fmt