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