Class TextWhizzColorPalette
Constructors
(constructor)(tw, colorPalette)
Constructs a new instance of the TextWhizzColorPalette
class
Declaration
constructor(tw: ITextWhizzHolder, colorPalette: Collection<IColorData>);
Parameters
Methods
addColorToPalette(colorData)
Declaration
addColorToPalette(colorData: IColorData): TextWhizz.Color;
Parameters
Returns
Type |
Description |
TextWhizz.Color |
|
addColorToPaletteReturnIndex(colorData)
Declaration
addColorToPaletteReturnIndex(colorData: IColorData): number;
Parameters
Returns
getPaletteColorAt(index)
Declaration
getPaletteColorAt(index: number): IColorData;
Parameters
Type |
Name |
Description |
number |
index |
|
Returns
getPaletteColors()
Declaration
getPaletteColors(): IColorData[];
Returns