Skip to main content

A simple tool for convinient rgb-tuple use

Project description

This module contains rgb tuples for some colors. Running e.g. 'colors.red' will return the rgb tuple for red. Running e.g. 'colors.transform(colors.red, (0,0,10))' will return the rgb tuple for red, but with its blue value incremented by 10. The first arg can also be a 3-value tuple, and the second arg can also be an int (which will in- or decrement all values in the given rgb-tuple).

example code:

import colors colors.red (255,0,0) colors.transform(colors.red, (-10,0,0)) (215,0,0) colors.transform((10,10,20), 5) (15,15,25)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easycolors-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file easycolors-1.0.1.tar.gz.

File metadata

  • Download URL: easycolors-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.3

File hashes

Hashes for easycolors-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f3c202215734676ae9f42e3957c4eb5fbad0badb5166abca5272df6f511ac493
MD5 56337cc3ece50ca494fb75e2c0be047d
BLAKE2b-256 2b9567da6937ce4c274e2c38bdee4978b2d951551ee866630ca35796bf97da89

See more details on using hashes here.

Supported by

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