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).
| Parameter | Type | Description |
|---|---|---|
color | StringParam | The color value (CSS color string) |
color(color: StringParam, selection: SceneObject): SceneObject
Applies a color to the given selection or object.
| Parameter | Type | Description |
|---|---|---|
color | StringParam | The color value (CSS color string) |
selection | SceneObject | A face selection, or any scene object — every face of the object's solids is colored |