Skip to main content
Version: 1.x

@microsoft/fast-colors > ColorPalette

ColorPalette class

Generates a color palette

Signature:
export declare class ColorPalette 

Constructors

ConstructorModifiersDescription
(constructor)(config)Constructs a new instance of the ColorPalette class

Properties

PropertyModifiersTypeDescription
defaultPaletteConfigstaticColorPaletteConfig
greyscalePaletteConfigstaticColorPaletteConfig
paletteColorRGBA64[]

Methods

MethodModifiersDescription
generatePaletteColorScale()
updatePaletteGenerationValues(newConfig)