code: def colorpalette(self, colorpalette):
          
          if isinstance(colorpalette, str):  # we assume it's a path to a color file
              colorpalette = colors.parse_colors(colorpalette)
  
          self._colorpalette = colors.sanitize_color_palette(colorpalette)
docs: Set the colorpalette which should be used