Initializes a new instance of SGColor.
SGColor(R, G, B, [alpha]);
SGColor(abgrColor);
SGColor(strHTMLColor);
SGColor(sgColor);
Parameter |
Description |
R |
The Red component value (0 – 255) |
G |
The Green component value (0 – 255) |
B |
The Blue component value (0 – 255) |
alpha |
Optional, default: 1.0 The opacity or transparency value (0.0 – 1.0) |
abgrColor |
A number that represents the color in ABGR format (0xAABBGGRR) |
strHTMLColor |
A string that represents HTML color format (“#RRGGBB”) |
sgColor |
Constructs an SGColor object from another color object |