Class Index

Classes


Class Annotations.Color

Represents a class that contains a color's RGB and alpha value.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new instance of Color.
Field Summary
Field Attributes Field Name and Description
 
A
the A (alpha) value (0-1.0)
 
B
the B (blue) value (0-255)
 
G
the G (green) value (0-255)
 
R
the R (red) value (0-255)
Method Summary
Method Attributes Method Name and Description
 
Returns the color as a hex string e.g.
 
Outputs the current color as a CSS3 RGB color string.
Class Detail
Annotations.Color()
Creates a new instance of Color.
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
toHexString()
Returns the color as a hex string e.g. #FFFFFF

toString()
Outputs the current color as a CSS3 RGB color string.
ex. "rgb(0,0,0)" or "rgba(0,255,0,0.5)"

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Mar 22 2017 11:30:11 GMT-0700 (PDT)