Skip to main content

color()

Applies a color to the last selection.

Returns: SceneObject

tip

See the guide for detailed usage examples.

Signatures

color(color: string): SceneObject

Applies a color to the last selection.

ParameterTypeDescription
colorstringThe color value (CSS color string)

color(color: string, selection: SceneObject): SceneObject

Applies a color to the given selection.

ParameterTypeDescription
colorstringThe color value (CSS color string)
selectionSceneObjectThe face or edge selection to color