Share

Color.opacity Property

Parent Object: Color
Defined in namespace "adsk::core" and the header file is <Core/Application/Color.h>

Description

Gets and sets the opacity of the color. The value can be 0 to 255. A value of 0 is transparent and 255 is opaque.

Syntax

"color_var" is a variable referencing a Color object.

# Get the value of the property.
propertyValue = color_var.opacity

# Set the value of the property.
color_var.opacity = propertyValue

Property Value

This is a read/write property whose value is a short.

Version

Introduced in version August 2014

Was this information helpful?