textColor(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
textColor(val: number[]): this;
Sets the color to apply to the displayed text, in the following form:
[r, g, b, z]
Note that this property is distinct from the node’s color
parameter which affects the whole node, including backgrounds and shadows.
Default value: [1, 1, 1, 1]
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | array | The color to set, in the following form: [r, g, b, a] . |
Returns
Section titled “Returns”this