ColorTableFactory
- class cee.ColorTableFactory()
Constructors
Methods
Constructors
- ColorTableFactory.constructor()
- Return type:
ColorTableFactory
Methods
static color3TableArray
- ColorTableFactory.color3TableArray(colorTable, colorCount)
- Arguments:
colorTable (
ColorTable
) – NonecolorCount (
number
) – None
Returns an array of Color3 created from the given color scheme.
The returned array will have colorCount number of values
- Return type:
[Color3Like]
static color4TableArray
- ColorTableFactory.color4TableArray(colorTable, colorCount)
- Arguments:
colorTable (
ColorTable
) – NonecolorCount (
number
) – None
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.
- Return type:
[Color4Like]
static interpolateColor4Array
- ColorTableFactory.interpolateColor4Array(colorArray, targetColorCount)
- Arguments:
colorArray (
[Color4Like]
) – NonetargetColorCount (
number
) – None
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.
- Return type:
[Color4Like]
static interpolateColorArray
- ColorTableFactory.interpolateColorArray(colorArray, targetColorCount)
- Arguments:
colorArray (
[Color3Like]
) – NonetargetColorCount (
number
) – None
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.
- Return type:
[Color3Like]
static partColorArray
- ColorTableFactory.partColorArray(colorCount)
- Arguments:
colorCount (
number
) – None
Returns an array with colors matching the part colors in the C3DC and the cee.ug component.
- Return type:
[Color3Like]