Skip to content

RGBA

export default class RGBA

Constructs a new instance of the RGBA class.


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).

Returns the RGBA color in HEX format (RGB only).


Returns the RGBA value for the color.