imagecat.color.basic module

Functionality for working with high quality color maps.

imagecat.color.basic.palette(name, reverse=False)[source]

Factory for imagecat.color.Palette instances based on a set of high quality color palettes.

Currently, the palettes “Blockbody”, “ExtendedBlackbody”, “Kindlmann”, and “ExtendedKindlemann” are supported.

Parameters
  • name (str, required) – The name of the palette to use.

  • reverse (bool, optional) – If True, reverse the order of the colors.

Returns

palette – Palette with the requested colors.

Return type

imagecat.color.Palette