Constructors
constructor
- new Color(r, g, b, a): Color
-
Parameters
-
r: number
-
g: number
-
b: number
-
a: number
- new Color(): Color
-
Properties
asAlpha
asAlpha: ((opacity) => Color)
Methods
Static
RGB
- RGB(r, g, b, a): Color
-
Parameters
-
r: number
-
g: number
-
b: number
-
a: undefined | number
Red (0.0 to 1.0)