src/core/widget-facade/color-table.service.ts
Methods |
addColorToMap | ||||||
addColorToMap(map: number[])
|
||||||
Adds a single RGB color to the color table
Parameters :
Returns :
void
|
addMultipleColorsToMap | ||||||
addMultipleColorsToMap(maps: number[][])
|
||||||
Adds multiple RGB Colors to the color table param maps
Parameters :
Returns :
void
|
getColorMap |
getColorMap()
|
Returns the current RGB color table.
Returns :
[][]
|
getCssRgbString | ||||||
getCssRgbString(index: number)
|
||||||
Returns the RGB color at the specified index from the color table, as a CSS RGB color string. Example: for an index of 0, the RGB array is [0,0,0]. Converted to a CSS RGB color string, it is rgb(0,0,0).
Parameters :
Returns :
string
|
getRgbArray | ||||||
getRgbArray(index: number)
|
||||||
Returns the RGB color at the specified index from the color table, as an array of numbers
Parameters :
Returns :
number[]
|
setColorMap | ||||||
setColorMap(map: number[][])
|
||||||
Resets the current RGB Color Table to the given value.
Parameters :
Returns :
void
|