Skip to main content

A simple library to convert color codes.

Project description

colorcodeconvert

PyPI - Python Version PyPI - Downloads GitHub

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)

Uploaded Source

Built Distribution

colorcodeconvert-1.1.2-py3-none-any.whl (16.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page