alpha(
COLOR
)

The alpha( function extracts the alpha (opacity) from a color.


Parameters

This function has one parameter:

color – is the color you want to extract information from. This must either be a binary value created with the rgb(, hsb(, or other color generation functions, or must be an HTML color specification like "FF0000 (red) or "0000FF (blue). See Colors for more information.


Description

This function extracts the alpha (opacity) from a color.

The example below calculates the opacity of the color (in percent, from 0 to 100%).

Opacity = alpha(HighlightColor)* 100 / 65535

For more examples of color, see Colors.


See Also


History

VersionStatusNotes
10.0NewNew in this version