Predefined Functions – green

Function name: green – Return green component
Synopsis: green(c)


Input data type Output data type
color real

Description:

This function takes a color variable as input and returns the green part of the color. Normally the green part of a color is between 0 and 1. Colors can be created by using one of the color creation functions:

Internally colors are stored in RGBA format, thus this function is fast as it only needs to return one of the stored components of the color.

green