class_docstr: Class to control the color pallete for drawing.
  
  Examples
  --------
  Change palette:
  >>> from norfair import Palette
  >>> Palette.set("colorblind")
  >>> # or a custom palette
  >>> from norfair import Color
  >>> Palette.set([Color.red, Color.blue, "#ffeeff"])
docstr: Selects a color palette.
  
  Parameters
  ----------
  palette : Union[str, Iterable[ColorLike]]
      can be either
      - the name of one of the predefined palettes `tab10`, `tab20`, or `colorblind`
      - a list of ColorLike objects that can be parsed by [`parse_color`][norfair.drawing.color.parse_color]
code: def set(cls, palette: Union[str, Iterable[ColorLike]]):
      """
      Selects a color palette.
  
      Parameters
      ----------
      palette : Union[str, Iterable[ColorLike]]
          can be either
          - the name of one of the predefined palettes `tab10`, `tab20`, or `colorblind`
          - a list of ColorLike objects that can be parsed by [`parse_color`][norfair.drawing.color.parse_color]
      """
      if isinstance(palette, str):
          try:
              cls._colors = PALETTES[palette]
          except KeyError as e:
              raise ValueError(
                  f"Invalid palette name '{palette}', valid values are {PALETTES.keys()}"
              ) from e
      else:
          colors = []
          for c in palette:
              colors.append(parse_color(c))
  
          cls._colors = colors
  
file_path: norfair/norfair/drawing/color.py
imports: import re
  from typing import Any, Hashable, Iterable, Tuple, Union
label_desc: Use image node_id 1 for calling the Palette obj's underlying member method code with example usage: obj.set(cls, palette) without return types