RGBB

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

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

  Returns

The component value, which represents how much blue 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 BLUE=";RGBB(POINT(320,240))
WAIT KEY
  See also

BASIC2D Commands Menu
Index