textColor(...)
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
Parameter | Type | Description |
---|---|---|
val | array | The color to set, in the following form: [r, g, b, a] . |
Returns
this