rgson / python-colornames

A Python library for finding the names of colors.
MIT License
7 stars 0 forks source link

Color name validation #2

Open sebastianbreguel opened 1 month ago

sebastianbreguel commented 1 month ago

You have a function to make a fast color name validation?

rgson commented 1 month ago

No, there's not.

Internally, there's a _colors dict with all the color names as keys. Although it's not part of the public interface, it's possible to use it for a fast lookup.

"Baby Blue" in colornames._colors