A simple library to convert color codes.
Project description
colorcodeconvert
pip install colorcodeconvert
Examples
From HEX to RGB
from colorcodeconvert import *
# Prints the RGB value associated with the given HEX value.
print(convert(HexCode("#A0A0A0"), RGB))
From RGB to HEX
from colorcodeconvert import *
# Prints the HEX value associated with the given RGB value.
print(convert(RgbCode(160, 160, 160), HEX))
Credits
README Badges made with Shields.io.
License
This software is licensed under the GNU General Public License version 3.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colorcodeconvert-1.1.2.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for colorcodeconvert-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46ecd618616f0f9a6b0c26a02e5319ed5191ab125a8b62bad163263b5b3cef3 |
|
MD5 | 82bc790f7898053229682a459a40347e |
|
BLAKE2b-256 | fbcc34b019ff63fb1ee7b288d052d0d3df4d66be55611e9d91daa0a9d697a313 |