multicolorfits.get_palette#

multicolorfits.get_palette(name, n=None)[source]#

Get a curated palette by name.

Parameters:
  • name (str) – One of list_palettes() or a hue pattern from list_hue_patterns().

  • n (int or None) – If given, return only the first n colors (must be <= palette length for static palettes).

Returns:

list of str – Hex color strings.