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.
# Get the value of the property.propertyValue = color_var.opacity# Set the value of the property.color_var.opacity = propertyValue
#include <Core/Application/Color.h>// Get the value of the property.short propertyValue = color_var->opacity();// Set the value of the property, where value_var is a short.bool returnValue = color_var->opacity(value_var);