color(...)
color(val: number[]): this;
Sets the color of the material.
Default value: [1, 1, 1, 1]
Parameters
Parameter | Type | Description |
---|---|---|
val | array | The value to set the color to, in the following form: [r, g, b, a] . Each component is a number between 0 and 1. |
Returns
this