Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Generate rgb palette in red or rainbow

Project description


calculate the RGB values for rainbow or shades of red palette


Run the following to install:

pip install pyrgbpalette


from rgbpalette import rgb_in_rainbow, rgb_in_palette
# generate rgb value
rgb_value = rgb_in_rainbow(0.5)

# generate rgb palette (default: rainbow values)
rgb_value = rgb_in_palette(0.5)

# generate rgb palette as shades of red
rgb_value = rgb_in_palette(0.5, rainbowDisplay=False)

Developing PyRgbPalette

To install pyrgbpalette, along with the tools you need to develop and run tests, run the following in your virtualenv:

$ pip install -e .[dev]

Project details

Download files

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

Files for pyrgbpalette, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size pyrgbpalette-0.0.6.tar.gz (16.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page