Constructors
constructor
- new Color(r: number, g: number, b: number, a?: number): Color
-
Parameters
-
r: number
-
g: number
-
b: number
-
a: number = 255
Methods
Static
fromArgb
- fromArgb(a: number, r: number, g: number, b: number): Color
-
Parameters
-
a: number
-
r: number
-
g: number
-
b: number
Static
fromArray
- fromArray(primitive: number[] | [number, number, number]): Color
-
Parameters
-
primitive: number[] | [number, number, number]
Static
fromRgb
- fromRgb(r: number, g: number, b: number): Color
-
Parameters
-
r: number
-
g: number
-
b: number