ALPHA function

ALPHA(Color) ALPHA(Color)

Color

Color or { Color }

The color.

Returns

Number or { Number }

The alpha value from the given color, ranging from 0 (fully transparent) to 1 (fully opaque).

Returns the alpha value from the given color. 0 means that the color is fully transparent and 1 means that the color is fully opaque.

Examples

ALPHA(Color.Blue)ALPHA(Color,Blue)

Returns 1, indicating that the default blue color is fully opaque.

ALPHA({ Color.Blue, RGBA(0, 0, 255, 0.5) })ALPHA({ Color,Blue; RGBA(0; 0; 255; 0,5) })

Returns the array { 1, 0.5 }{ 1; 0,5 }, indicating that the default blue color is fully opaque and that the second color, also blue, is half-transparent. RGBA accepts four parameters, specifying the red, green, blue and alpha components, in that order. A color with an alpha value of 0.5 is half-transparent.