This module provide a set of palettes to associate colors to data

image.gui.palette.grayscale(cmax, alpha=False)[source]

Grayscale values ranging from 0 to 255

Parameters:
  • cmax (int) - data maximum value
Returns Type:

list of (R,G,B,(A) )

image.gui.palette.grayscale_alpha(cmax, alpha=False)[source]

Grayscale values ranging from 0 to 255

Parameters:
  • cmax (int) - data maximum value
Returns Type:

list of (R,G,B,(A) )

image.gui.palette.rainbow(cmax)[source]

Rainbow values ranging from red to blue and violet

Parameters:
  • cmax (int) - data maximum value
Returns Type:

list of (R,G,B)

image.gui.palette.bwrainbow(cmax, alpha=False)[source]

Black, White plus Rainbow values ranging from red to blue and violet

Parameters:
  • cmax (int) - data maximum value
Returns Type:

list of int

image.gui.palette.bw()[source]

Black and white palette

image.gui.palette.palette_factory(palname, cmax, as_ARGB=False)[source]

This Page