ALPHA (Color) ALPHA (Color)
Color
Color Color
The color.
Returns
Number 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.
Returns roughly 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.