Colorops converts between colorspaces, finds the best text color for your background, and can adjust hue, saturation, contrast and brightness. It’s particularly useful for templated HTML and CSS, e.g:
border: {{ primary_color.adjust(brightness_offset=0.4) }}
The module uses YUV for high-quality results, rather than HSV.
Metadata
Release files for colorops 0.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 | |
|---|---|---|---|
| colorops-0.1.tar.gz | 3.3 kB | Details |
Release files / colorops-0.1.tar.gz
| Download URL | colorops-0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a608cb3d7dca80cdf4a740abc0b22dbc7e425af489af2fcb594b21bd2e8c2cc
|
|
BLAKE2b-256 checksum How to use checksums |
6ffefec5e2c9cd7415c61d9de50cd6e5ebd659dfd0a0664afc1f70d144b306d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |