RGBG

This command will extract the green component value from the specified RGB value.

  Syntax
Return Integer=RGBG(Green Value)
  Parameters
Green Value
Dword
This value specifies the colour value, normally generated from the RGB command.

  Returns

The component value, which represents how much green is in the colour.

  Description

You can generate an RGB value from color components using the RGB command.

  Example Code
CLS RGB(128,64,255)
PRINT "AMOUNT OF GREEN=";RGBG(POINT(320,240))
WAIT KEY
  See also

BASIC2D Commands Menu
Index