ALPHA
Gets the alpha channel of the specified color. Returns a decimal from 0 to 1.
Syntax
=ALPHA(color)
Arguments
Argument | Type | Description |
---|---|---|
color | Color | The color |
Examples
=ALPHA("#0000ff")
→ 1
Gets the alpha channel for the color represented by the hex color code #0000ff (blue)
=ALPHA(RGB(128, 128, 128, 0.5))
→0.5
Gets the alpha channel for a color having a value of 128 for red, 128 for green, 128 for blue, and 0.5 for alpha
=ALPHA(0)
→#ERROR!
Attempts to get the alpha channel from an integer, which is invalid because it cannot be converted to a color
Updated 9 months ago