Skip to main content

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)

Source distribution for easycolors 1.0.4
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

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

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