1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 15:35:53 +00:00
QB64-PE/internal/help/_GREEN.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

29 lines
1.5 KiB
Plaintext

The {{KW|_GREEN}} function returns the palette index OR the green component intensity of a 32-bit screen only.
{{PageSyntax}}
:{{Parameter|result&amp;}} = {{KW|_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.
* 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 {{KW|_RGB}}, {{KW|_RGBA}}, {{KW|_RGB32}} or {{KW|_RGBA32}} functions.
* An image handle is optional.
''See Example:'' [[POINT]]
{{PageSeeAlso}}
* {{KW|_RED}}, {{KW|_BLUE}}
* {{KW|_RGB}}, {{KW|RGB32}}
* {{KW|_LOADIMAGE}} &lt;!-- why have this link ? --&gt;
{{PageNavigation}}