Color.alpha
| Property Description | The opacity, or transparency, of the color. | 
| Type | number | 
| Module | |
| Parent Object | |
| Sibling Object Members | |
| Since | 2021.2 | 
Errors
| Error Code | Thrown If | 
|---|---|
| 
                       | The value of this property is not between 0 and 255. | 
| 
                       | The value specified for this property is not a number. | 
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/workbook Module Script Samples. Also see Full scripts in the Tutorial: Creating a Workbook Using the Workbook API topic.
            // Add additional code
...
var myColor = workbook.createColor({
    red: 255,
    green: 192,
    blue: 203,
    alpha: 0.5
});
var theAlpha = myColor.alpha;
...
// Add additional code