Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Color Naming #12

Closed
billdenney opened this issue Sep 12, 2019 · 1 comment · Fixed by #17
Closed

Feature Request: Color Naming #12

billdenney opened this issue Sep 12, 2019 · 1 comment · Fixed by #17

Comments

@billdenney
Copy link
Contributor

billdenney commented Sep 12, 2019

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).

@gaborcsardi
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants