Skip to main content

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.

Source Distribution

pyrgbpalette-0.0.6.tar.gz (16.3 kB view hashes)

Uploaded source

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