RGBR This command will extract the red component value from the specified RGB value.
Syntax
    Return Integer=RGBR(Red Value)
Parameters
    Red Value
Dword This value specifies the colour value, normally generated from the RGB command.
Returns
The component value, which represents how much red 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 RED=";RGBR(POINT(320,240))

    WAIT KEY
See also
BASIC2D Commands Menu Index