@microsoft/fast-colors > extractPalette
extractPalette() function
Extracts a palette.
Signature:export declare function extractPalette(colors: QuantizedColor[], config?: PaletteExtractionConfig): PaletteEntry[];
Parameters
Parameter | Type | Description |
---|---|---|
colors | QuantizedColor[] | the quantized colors |
config | PaletteExtractionConfig | the extraction config |