RGBA function

RGBA(Red, Green, Blue, Alpha) RGBA(Red; Green; Blue; Alpha)

Red

Number or { Number }

The red color component. Must be between 0 and 255 (inclusive).

Green

Number or { Number }

The green color component. Must be between 0 and 255 (inclusive).

Blue

Number or { Number }

The blue color component. Must be between 0 and 255 (inclusive).

Alpha

Number or { Number }

The alpha value. Must be between 0 and 1 (inclusive). 0 means that the color is fully transparent and 1 means that the color is fully opaque.

Returns

Color or { Color }

A color based on the given color components.

Returns a color based on the given color components according to the Red-Green-Blue-Alpha (RGBA) color model.

This function is Calcapp-specific.

Examples

RGBA(255, 0, 0, 0.5)RGBA(255; 0; 0; 0,5)

Returns a half-transparent color corresponding to Color.RedColor,Red.

RGBA({ 255, 0, 0 }, { 0, 255, 0 }, { 0, 0, 255 }, 1)RGBA({ 255; 0; 0 }; { 0; 255; 0 }; { 0; 0; 255 }; 1)

Returns the array { Color.Red, Color.Green, Color.Blue }{ Color,Red; Color,Green; Color,Blue }, where all colors are fully opaque.