Chroma
Chroma is a Python module for handling colors with ease.
Quickstart
import chroma
# Create a Color object
color = chroma.Color('#00FF00')
# Get RGB, HLS, and HSV in either float or 0 - 255 (8bit)
# Also, HEX
color.rgb # (0.0, 1.0, 0.0)
color.hls # (0.3333333333333333, 0.5, 1.0)
color.rgb256 # (0, 255, 0)
color.hex = # '#00FF00'
# Set RGB, HLS, HSV (float or 256) and HEX
color.rgb256 = (255, 0, 0)
color.hls = (0.0, 1.0, 0.0)
Currently supports RGB, HLS, HSV and HEX (#RRGGBB) coordinates.
BSD licensed. Hosted on Github and available on PyPI.
Installation:
pip install tungsten
History
0.1.1 (2012-12-16)
HLS, HSV Support
API changes (setter methods)
Bug Fixes
Update to README
0.1.0 (2012-12-15)
Initial Release
RGB and Hex support
Metadata
Release files for Chroma 0.1.1
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 | |
|---|---|---|---|---|
| Chroma-0.1.1.tar.gz | 3.4 kB | Without provenance | Details |
Release files / Chroma-0.1.1.tar.gz
| Download URL | Chroma-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1674ff27f876c83239dfe7a3bc64bc513b13b396a9d881ca2f124d649fdc3db5
|
|
BLAKE2b-256 checksum How to use checksums |
8d91ed723c83df1ad28bf41ae20a53c8ddf8d407306b3369226acf5547ae6c28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Chroma 0.1.1
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.