Name
ARGB -- compose a color with alpha transparency (V2.0)
Synopsis
color = ARGB(alpha, rgb)
Function
This function combines an alpha transparency value with a color in RGB notation. A 32-bit ARGB color in the format $AARRGGBB will be returned. This is useful in connection with the commands of the drawing library because they can draw alpha-blended graphics, too.

Inputs
alpha
desired alpha transparency (0-255)
rgb
standard RGB color
Results
color
ARGB color
Example
Box(#CENTER, #CENTER, 320, 240, ARGB(128, #WHITE))
The code above draws an alpha-blended white rectangle. The mixing ratio is 128 (50%).

Show TOC