ColorPropertyAlpha

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the alpha of <mColor>
Associationscom.livecode.canvas
Summary

The alpha component of a color value.

Parameters
NameTypeDescription
mColor

An expression which evaluates to a color.

Example
variable tColor
put color [0.75, 1.0, 0.5] into tColor

// Store the old alpha value
variable tAlpha
put the alpha of tColor into tAlpha

// Make the color semi-transparent
set the alpha of tColor to 0.5
Description

The alpha component of mColor

Note: The alpha value represents the opacity of the color, expressed as a real number between 0 (fully transparent) and 1 (fully opaque).

Tagscanvas