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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colorops-0.1.tar.gz
(3.3 kB
view details)
File details
Details for the file colorops-0.1.tar.gz.
File metadata
- Download URL: colorops-0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a608cb3d7dca80cdf4a740abc0b22dbc7e425af489af2fcb594b21bd2e8c2cc
|
|
| MD5 |
79f7fabbd433558229cfb491368f603b
|
|
| BLAKE2b-256 |
6ffefec5e2c9cd7415c61d9de50cd6e5ebd659dfd0a0664afc1f70d144b306d9
|