Skip to content

RGB_B

Returns the blue component (as an Integer) from a given RGBA colour value.

Syntax: RGB_B( RGBA )

RGBA
required A Long RGBA colour value, of the kind returned by RGB or RGBA.

The return value is the blue component in the range 0--255.

Example

This example extracts the blue component from a colour built with RGB.

vb
Dim MyColor As Long
Dim BlueComponent As Integer
MyColor = RGB(210, 45, 200)
BlueComponent = RGB_B(MyColor)        ' Returns 200.

See Also

twinBASIC and LOGO copyright of "WaynePhillipsEA" author