-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 24 colour, based on @duja's suggested colours
- Loading branch information
1 parent
fe0c74c
commit cfb8f06
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfb8f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's me :) Thanks.
For what it's worth, N "discernible colors" are best algorithmically generated in HSL color space. If I recall correctly, those above have 12 equally spaced hues, multiplied by 2 lumination levels, and the set is converted to RGB. For more colors, also vary the saturation (more bright/more grayish). That's all pretty heuristic, but works okay with up to ~50 colors, where human eye ultimately fails. And randomization of colors also has limits, since ensuring that adjacent basins never match is quite NP-hard.
cfb8f06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used this generator for TIGERMap and it seems to do a decent job. I pulled a few colors out after generation as they conflicted with common Carto coloring.. but that could be solved by having a greyscale base layer.