Class Annotations.Color
Represents a class that contains a color's RGB and alpha value.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new instance of Color.
|
Field Attributes | Field Name and Description |
---|---|
the A (alpha) value (0-1.0)
|
|
the B (blue) value (0-255)
|
|
the G (green) value (0-255)
|
|
the R (red) value (0-255)
|
Method Attributes | Method Name and Description |
---|---|
toString()
Outputs the current color as a CSS3 RGB color string.
|
Field Detail
{number}
A
the A (alpha) value (0-1.0)
{number}
B
the B (blue) value (0-255)
{number}
G
the G (green) value (0-255)
{number}
R
the R (red) value (0-255)
Method Detail
toString()
Outputs the current color as a CSS3 RGB color string.
ex. "rgb(0,0,0)" or "rgba(0,255,0,0.5)"