RGBA
export default class RGBA
Constructors
Section titled “Constructors”constructor(red: number, green : number, blue : number, alpha : number)
Section titled “constructor(red: number, green : number, blue : number, alpha : number)”Constructs a new instance of the RGBA class.
Properties
Section titled “Properties”The red value of the RGBA color (0-255).
The green value of the RGBA color (0-255).
The blue value of the RGBA color (0-255).
The alpha value of the RGBA color (0-1).
Methods
Section titled “Methods”toHEX() : RGBA
Section titled “toHEX() : RGBA”Returns the RGBA color in HEX format (RGB only).
toString() : string
Section titled “toString() : string”Returns the RGBA value for the color.