GREEN function

GREEN(Color) GREEN(Color)

Color

Color or { Color }

The color.

Returns

Number or { Number }

The green color component from the given color, ranging from 0 to 255 (inclusive).

Returns the green color component from the given color according to the Red-Green-Blue (RGB) and Red-Green-Blue-Alpha (RGBA) color models.

This function is Calcapp-specific.

Examples

GREEN(Color.Green)GREEN(Color,Green)

Returns 128, which is the green color component of the default green color.

GREEN({ Color.Blue, Color.Green })GREEN({ Color,Blue; Color,Green })

Returns the array { 0, 128 }{ 0; 128 }, indicating that the default blue color has a green color component value of 0 and that the default green color has a green color component value of 128.