# ColorTableFactory

class `cee.``ColorTableFactory`()

Constructors

- `constructor`

Methods

- `color3TableArray`
- `color4TableArray`
- `interpolateColor4Array`
- `interpolateColorArray`
- `partColorArray`

## Constructors

`ColorTableFactory.``constructor`()

  Return type: | ColorTableFactory

## 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]

### 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]

### 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]

### 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]

### static partColorArray

`ColorTableFactory.``partColorArray`(colorCount)

  Arguments: | colorCount (`number`) – None

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

  Return type: | [Color3Like]

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Web or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...