This module contains rgb tuples for some colors.
Running e.g. 'easycolors.red' will return the rgb tuple for red.
Running e.g. 'easycolors.transform(easycolors.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).
Running 'easycolors.help()' will print some information that might be usefull.
colors: white, black, grey, darkgrey, red, green, blue, yellow, orange, cyan, purple, navy, pink
example code:
import easycolors
easycolors.red
"(255,0,0)"
easycolors.transform(easycolors.red, (-10,0,0))
"(215,0,0)"
easycolors.transform((10,10,20), 5)
"(15,15,25)"
Release files for easycolors 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easycolors-1.0.4.tar.gz | 2.8 kB | Details |
Release files / easycolors-1.0.4.tar.gz
| Download URL | easycolors-1.0.4.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd0567cd84384252dbfdcade3fb3e3b85f2d03dfbbafac59647038cbec051793
|
|
BLAKE2b-256 checksum How to use checksums |
2ec3cdb003851b1bee28a01b74fd747d52468dc39dbc52b6681b76b129496306
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|