Color.getOpacity

Syntax

getOpacity();

Description

The getOpacity method returns opacity value from 0 to 1.

Example

Executing the example requires the ColorCombo component named colCombo (see Example of Creating the ColorCombo Component). Output the value of the current color's transparency to the JavaScript console:

console.log(colCombo.getColor().getOpacity()

After executing the example the browser console displays the transparency value for the current color of the ColorCombo component.

Color