Skip to main content

color()

Applies a color to the last selection, or to every face in the current context when there is no selection (equivalent to select(face()) first).

Returns: SceneObject

tip

See the guide for detailed usage examples.

Signatures​

color(color: StringParam): SceneObject

Applies a color to the last selection, or to every face in the current context when there is no selection (equivalent to select(face()) first).

ParameterTypeDescription
colorStringParamThe color value (CSS color string)

color(color: StringParam, ...selections: SceneObject[]): SceneObject

Applies a color to the given selections or objects — any mix of face selections and scene objects; every face of an object's solids is colored.

ParameterTypeDescription
colorStringParamThe color value (CSS color string)
...selectionsSceneObject[]Face selections, or any scene objects (optional)