Constructors
constructor
- new RGBA32(hex: number): RGBA32
Properties
Accessors
a
- get a(): number
Returns number
b
- get b(): number
Returns number
g
- get g(): number
Returns number
r
- get r(): number
Returns number
Methods
Static
fromFloats
- fromFloats(r: number, g: number, b: number, a?: number): RGBA32
Parameters
- r: number
- g: number
- b: number
- a: number = 1
Static
fromInts
- fromInts(r: number, g: number, b: number, a?: number): RGBA32
Parameters
- r: number
- g: number
- b: number
- a: number = 1
Static
fromString
- fromString(str: string): RGBA32
The alpha component of the color in the range [0-255].