Fetches color name using hex value.
pip install colory
>>> from colory.color import Color
Choose between xkcd or wiki color lists.
>>> a=Color('#000000','xkcd')
>>> a.name
'Black'
Mix Color
>>> a.mix('#FFFFFF')
>>> a
0x7f7f7f
>>> a.name
'Medium Grey'
Apoorva Pandey – apoorvapandey365@gmail.com
Distributed under the BSD license.
https://github.com/apoorvaeternity
- Fork it (https://github.com/apoorvaeternity/colory/)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -m 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request