{{DISPLAYTITLE:_GREEN}}
The [[_GREEN]] function returns the palette index or the green component intensity of a 32-bit image color.


{{PageSyntax}}
: {{Parameter|greenIntensity&amp;}} = [[_GREEN]]({{Parameter|rgbaColorIndex&amp;}}[, {{Parameter|imageHandle&amp;}}])


{{PageDescription}}
* {{Parameter|rgbaColorIndex&amp;}} is the ''RGBA'' color value or palette index of the color to retrieve the green component intensity from.
* The [[LONG]] intensity value returned ranges from 0 (no intensity, not present) to 255 (full intensity).
* If {{Parameter|imageHandle&amp;}} specifies a 32-bit color image, {{Parameter|rgbaColorIndex&amp;}} is interpreted as a 32-bit ''RGBA'' color value.
* If {{Parameter|imageHandle&amp;}} specifies an image that uses a palette, {{Parameter|rgbaColorIndex&amp;}} is interpreted as a palette index.
* If {{Parameter|imageHandle&amp;}} is not specified, it is assumed to be the current write page (See [[_DEST]]).
* If {{Parameter|imageHandle&amp;}} is an invalid handle, an [[ERROR Codes|invalid handle]] error will occur.
* If {{Parameter|rgbaColorIndex&amp;}} is outside the range of valid indexes for a given image mode, an [[ERROR Codes|illegal function call]] error occurs.
* Uses index parameters passed by the [[_RGB]], [[_RGBA]], [[_RGB32]] or [[_RGBA32]] functions.
* An image handle is optional.


{{PageExamples}} 
* See example in [[POINT]].


{{PageSeeAlso}}
* [[_RED]], [[_BLUE]]
* [[_RGB]], [[RGB32]]
* [[_LOADIMAGE]] 


{{PageNavigation}}
