Green
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Green

  • Dark
    Light
  • PDF

Returns an integer between 0 and 255 representing the color's green component.

Function signature

GREEN(color: String) => Number
Parameter Description
Color Color

Examples

Formula Return value
GREEN("#ff0") 255
GREEN("rgb(10, 20, 40)") 20
GREEN("hsl(80, 20%, 40%)") 122
GREEN("red") 0

Was this article helpful?

What's Next