colorix
Colorix (which stands for 'Color Exchange') is a Python3 module designed for working with colors; specifically color conversion, utilities, and more.
Installation
The easiest way to install colorix is through PIP.
pip install colorix or pip3 install colorix
Before installing, ensure your Python version is 3.6 or above.
Usage
NOTE: Results produced by colorix are not guaranteed to be accurate
Currently, colorix supports 3 color spaces; RGB, CMYK, and HEX.
The following example demonstrates the standard use of colorix.
from colorix import RGB # Import the RGB class
rgb = (12, 34, 56) # Set our values
my_result = RGB(*rgb).toCMYK().raw # Get our values
print(my_result) # Print them
>>> (79, 39, 0, 78)
cmyk = my_result # Set our values
my_result = CMYK(*cmyk).toRGB().raw # Get our values
print(my_result) # Print them
>> (12, 34, 56)
Metadata
Release files for colorix 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colorix-0.1.5.tar.gz | 3.2 kB | Without provenance | Details for colorix-0.1.5.tar.gz |
Release files / colorix-0.1.5.tar.gz
| Download URL | colorix-0.1.5.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
128cea6e3fcd270826af7aa8ccc65e548324c3d398a0a87d80a16cfe482549cc
|
|
BLAKE2b-256 checksum How to use checksums |
e9db0bb395f36edaf96ed1b855f1939bda515f3b1bcc5d01819a78770b9869a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1
|
Security for colorix 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.