You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently found myself wanting a way to convert a color to a human-readable name (to automate making captions for figures in reports).
I'd think that this would be implemented as follows:
Take the color names from colors().
Clean them up to be more human readable (e.g. convert all the items like "aquamarine4" to "dark aquamarine" and add some spaces to items like "blanched almond"), and
This would be the "full color list".
Simplify the full color list to a shorter selection of a smaller number of colors (how different is "azure3" from "gray" or "wheat3" compared to "tan", really?), and
This would be the "simple color list".
For any input color, find the nearest color name (using one of the algorithms here: https://en.wikipedia.org/wiki/Color_difference) and return that to the user. The user could optionally choose either the "simple" or "full" color list (defaulting to simple).
The text was updated successfully, but these errors were encountered:
I like the idea of human readable color names. Reminds me of this project: https://github.com/colorjs/color-namer Maybe we could reuse some of their data?
I recently found myself wanting a way to convert a color to a human-readable name (to automate making captions for figures in reports).
I'd think that this would be implemented as follows:
colors()
.For any input color, find the nearest color name (using one of the algorithms here: https://en.wikipedia.org/wiki/Color_difference) and return that to the user. The user could optionally choose either the "simple" or "full" color list (defaulting to simple).
The text was updated successfully, but these errors were encountered: