colour_get_green

This function returns the amount of green used to make the given colour, with the value being between 0 and 255, where 0 is no green and 255 is all green. The following image illustrates this:

Green colour example

Syntax:

colour_get_green(col);

ArgumentType Description
colColour The colour to check

 

Returns:

Real

 

Example:

g_comp = colour_get_green(c_teal);

The above code will get the green component of the colour constant "c_teal" and store the value in the variable "g_comp".