dylanebert's picture
initial commit
346b70f
raw
history blame contribute delete
293 Bytes
from .quantizer import quantize_colors
from .mapper import PaletteMapper
__all__ = ["quantize_colors", "PaletteMapper", "create_palette"]
def create_palette(colors, size=16):
total_palette_colors = size * size
return quantize_colors(colors, target_color_count=total_palette_colors)