ColorRGBA(r: number, g: number, b: number, a?: number): Color
One of the many available factories for Color. This variant receives individual values for red, green, blue, and optionally alpha channels.
Input values are in range [0, 255].
Example usage:
// Create Color from RGB [0, 255] values (completely red). constcolor = ColorRGBA( 255, 0, 0 )
One of the many available factories for Color. This variant receives individual values for red, green, blue, and optionally alpha channels. Input values are in range [0, 255].
Example usage:
For more convenience factories, see:
Returns
Color object. Please refer to Color API document, on extended information how to use LCJS Colors.