new Color(r, g, b, maskopt)
Create a RGB color with optional mask (see 'jsboot/color.js').
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
r |
number | the red value. | |
g |
number | the green value. | |
b |
number | the blue value. | |
mask |
number |
<optional> |
the Color mask. |
Members
-
static value
-
Properties:
Name Type Description 24bitnumber value with the actual color.
Methods
-
GetBlue()
-
get the blue part of a color.
Returns:
- the blue part of a color. -
GetGreen()
-
get the green part of a color.
Returns:
- the green part of a color. -
GetRed()
-
get the red part of a color.
Returns:
- the red part of a color.