Initializes a new Color object.
[JavaScript] function Color(r, g, b, a);
Parameter | Description | |
r |
The red component of the color. |
|
g |
The green component of the color. |
|
b |
The blue component of the color. |
|
a |
The alpha component of the color. Optional. |