GREEN
Gets the green channel of the specified color in the RGB colorspace. Returns an integer from 0 to 255. For more information about the RGB colorspace, see: https://en.wikipedia.org/wiki/RGB
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 10 months ago