Javascript: TXTextControl.Color Constructor
Description
Initializes a new instance of the Color class.
Syntax
TXTextControl.Color(<number> a, <number> b, <number> g, <number> r)Parameters
| Parameter | Description |
|---|---|
| a | The alpha component of the color. |
| b | The blue component of the color. |
| g | The green component of the color. |
| r | The red component of the color. |
Examples
The following example demonstrates TXTextControl.Color in a practical document-editing workflow. Initializes a new instance of the Color class.
const color = TXTextControl.Color(1, 1, 1, 1);
console.log("Created TXTextControl.Color value:", color);