Skip to main content

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)

Source distribution for colorops 0.1
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

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page