Crates.io | equidistributed-colors |
lib.rs | equidistributed-colors |
version | 0.1.0 |
source | src |
created_at | 2024-10-21 17:58:00.403826 |
updated_at | 2024-10-21 17:58:00.403826 |
description | Iterator over colors which are distributed evenly according to the equidistribution theorem. |
homepage | |
repository | https://github.com/rpitasky/equidistributed-colors |
max_upload_size | |
id | 1417765 |
size | 3,520 |
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.