ColorTableFactory
-
class
cee.
ColorTableFactory
()
Constructors
Methods
Methods
static color3TableArray
-
ColorTableFactory.
color3TableArray
(colorTable, colorCount) Arguments: - colorTable (
ColorTable
) – None - colorCount (
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] - colorTable (
static color4TableArray
-
ColorTableFactory.
color4TableArray
(colorTable, colorCount) Arguments: - colorTable (
ColorTable
) – None - colorCount (
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] - colorTable (
static interpolateColor4Array
-
ColorTableFactory.
interpolateColor4Array
(colorArray, targetColorCount) Arguments: - colorArray (
[Color4Like]
) – None - targetColorCount (
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] - colorArray (
static interpolateColorArray
-
ColorTableFactory.
interpolateColorArray
(colorArray, targetColorCount) Arguments: - colorArray (
[Color3Like]
) – None - targetColorCount (
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] - colorArray (