Skip to main content

rgba

Description:

  Creates a new Color object using the RGBA color channel values.

Signature:

rgba: function(r: number, g: number, b: number, a: number): Color

Parameters:

ParameterTypeDescription
rnumberThe red channel value (0-255).
gnumberThe green channel value (0-255).
bnumberThe blue channel value (0-255).
anumberThe alpha channel value (0-1).

Returns:

Return TypeDescription
ColorThe new Color object.