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, selection: SceneObject): SceneObject

Applies a color to the given selection or object.

ParameterTypeDescription
colorStringParamThe color value (CSS color string)
selectionSceneObjectA face selection, or any scene object — every face of the object's solids is colored