Color.RGBA

From Xojo Documentation

Shared Method

Color.RGBA(red As Integer, green As Integer, blue As Integer, alpha As Integer) As Color

Returns a Color based on the specified red, green, blue and alpha values.

Notes

The alpha channel is the translucency of the color represented as an integer between 0 (opaque) and 255 (transparent).

Sample Code

Set a Color variable to red with full transparency:

Var red As Color = Color.RGBA(255, 0, 0, 255)

See Also

Color.RGB