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.
| Parameter | Type | Description |
|---|---|---|
color | string | The color value (CSS color string) |
color(color: string, selection: SceneObject): SceneObject
Applies a color to the given selection.
| Parameter | Type | Description |
|---|---|---|
color | string | The color value (CSS color string) |
selection | SceneObject | The face or edge selection to color |