Returns the green component of a given color.
#include <Color.au3>
_ColorGetGreen ( $nColor )
Parameters
$nColor | The RGB color to work with (hexadecimal code). |
Return Value
Success: | Returns the component color in the range 0-255. |
Failure: | Returns -1. |
@Error: | 0 = No error. |
1 = $nColor isn't a number. |
Remarks
None.
Related
_ColorGetRed, _ColorGetBlue
Example
#include <Color.au3>
$iGreenColor = _ColorGetGreen( 0x8080ff )
MsgBox( 4096, "AutoIt", $iGreenColor )