Skip to main content

Colorops converts between colorspaces, finds the best text color for your background, and can adjust hue, saturation, contrast and brightness.

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

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)

Uploaded Source

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

Hashes for colorops-0.1.tar.gz
Algorithm Hash digest
SHA256 0a608cb3d7dca80cdf4a740abc0b22dbc7e425af489af2fcb594b21bd2e8c2cc
MD5 79f7fabbd433558229cfb491368f603b
BLAKE2b-256 6ffefec5e2c9cd7415c61d9de50cd6e5ebd659dfd0a0664afc1f70d144b306d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page