ColorTableFactory

class cee.ColorTableFactory()

Constructors

cee.ColorTableFactory.constructor()
ColorTableFactory(): ColorTableFactory

Returns: ColorTableFactory

Methods

static cee.ColorTableFactory.color3TableArray()

static

color3TableArray(colorTable: ColorTable, colorCount: number): Color3Like[]

Returns an array of Color3 created from the given color scheme.

The returned array will have colorCount number of values

Parameters

colorTable: ColorTable

colorCount: number

Returns: Color3Like[]

static cee.ColorTableFactory.color4TableArray()

static

color4TableArray(colorTable: ColorTable, colorCount: number): Color4Like[]

Returns an array of Color4 created from the given color scheme.

The returned array will have colorCount number of values. All alpha values will be set to 1.

Parameters

colorTable: ColorTable

colorCount: number

Returns: Color4Like[]

static cee.ColorTableFactory.interpolateColor4Array()

static

interpolateColor4Array(colorArray: Color4Like[], targetColorCount: number): Color4Like[]

Interpolate a graded color table with the given number of colors (targetColorCount) based on the input colors (colorArray).

This is useful for creating gradient/continuous style color maps based on two or more colors.

Parameters

colorArray: Color4Like[]

targetColorCount: number

Returns: Color4Like[]

static cee.ColorTableFactory.interpolateColorArray()

static

interpolateColorArray(colorArray: Color3Like[], targetColorCount: number): Color3Like[]

Interpolate a graded color table with the given number of colors (targetColorCount) based on the input colors (colorArray).

This is useful for creating gradient/continuous style color maps based on two or more colors.

Parameters

colorArray: Color3Like[]

targetColorCount: number

Returns: Color3Like[]

static cee.ColorTableFactory.partColorArray()

static

partColorArray(colorCount: number): Color3Like[]

Returns an array with colors matching the part colors in the Envision and the cee.ug component.

Parameters

colorCount: number

Returns: Color3Like[]