Package Biskit :: Module ColorSpectrum
[hide private]
[frames] | no frames]

Module ColorSpectrum

source code

Create color scales.

Classes [hide private]
  ColorError
  ColorSpectrum
Translate a range of numeric values into a range of color codes.
  Test
ColorSpectrum test

Functions [hide private]
[ int ] colorRange(nColors, palette='plasma2')
Quick access to a range of colors.

Function Details [hide private]

colorRange(nColors, palette='plasma2')

source code 

Quick access to a range of colors.
Parameters:
  • nColors (int) - number of colors needed
  • palette (str) - type of color spectrum
Returns: [ int ]
a range of color values