File

src/core/widget-facade/color-table.service.ts

Index

Methods

Methods

addColorToMap
addColorToMap(map: number[])

Adds a single RGB color to the color table

Parameters :
Name Type Optional
map number[] No
Returns : void
addMultipleColorsToMap
addMultipleColorsToMap(maps: number[][])

Adds multiple RGB Colors to the color table

param maps

Parameters :
Name Type Optional
maps number[][] No
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 :
Name Type Optional
index number No
Returns : string
getRgbArray
getRgbArray(index: number)

Returns the RGB color at the specified index from the color table, as an array of numbers

Parameters :
Name Type Optional
index number No
Returns : number[]
setColorMap
setColorMap(map: number[][])

Resets the current RGB Color Table to the given value.

Parameters :
Name Type Optional
map number[][] No
Returns : void

result-matching ""

    No results matching ""