in chartify/_core/style.py [0:0]
def _set_palette_colors(self, palette):
try:
# Palette is a string.
# Retreive the appropriate ColorPalette object.
if palette.lower():
palette = colors.color_palettes[palette]
except AttributeError:
pass
palette_colors = getattr(palette, "colors", None)
if palette_colors is not None:
# Palette is a ColorPalette object
self._colors = [color.get_hex_l() for color in palette_colors]
else:
# Palette is a list of color strings
self._colors = [colors.Color(color).get_hex_l() for color in palette]