Alpha Property

The Alpha property sets the transparency of a ColorRGBA object. Returns an integer between 0 and 255.

Syntax

object.Alpha=Value

Parameter

Type

Description

Value

Integer (%)

0 = Transparent

255 = Opaque

Example 1

This example demonstrates how to set the opacity of an object to 20% (0.20 * 255 = 51).

ColorRGBA.Alpha = 51

Example 2

This example demonstrates how to return opacity of an object

Debug .Print ColorRGBA.Alpha

Used by: ColorRGBA object