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 details)
Built Distribution
File details
Details for the file colorcodeconvert-1.1.2.tar.gz
.
File metadata
- Download URL: colorcodeconvert-1.1.2.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28c9fc8d44e3661b5f3e7baa1cce3ff97ade75ca170be43e921cca01cb3097f4 |
|
MD5 | 49c9a5d46ab294931105a0c8161deb75 |
|
BLAKE2b-256 | 6c6abef7677279c1d01b8abc9483e3f0602ea66ce2e7e1d273487fec61b92e0e |
File details
Details for the file colorcodeconvert-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: colorcodeconvert-1.1.2-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46ecd618616f0f9a6b0c26a02e5319ed5191ab125a8b62bad163263b5b3cef3 |
|
MD5 | 82bc790f7898053229682a459a40347e |
|
BLAKE2b-256 | fbcc34b019ff63fb1ee7b288d052d0d3df4d66be55611e9d91daa0a9d697a313 |