imagecat.color.brewer module

Functionality for working with Color Brewer color maps, https://colorbrewer2.org.

imagecat.color.brewer.linear_map(name, count=None, reverse=False)[source]

Warning

function ‘imagecat.color.brewer.linear_map’ undocumented

imagecat.color.brewer.palette(name, count=None, reverse=False)[source]

Factory for imagecat.color.Palette instances using Color Brewer 2 palettes.

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

  • count (int, optional) – Selects the Color Brewer palette with the given number of colors, or the maximum number of colors if None (the default).

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

Returns

palette – Palette with the given color brewer colors.

Return type

imagecat.color.Palette