RGB

Top  Previous  Next

Syntax

UINT = RGB(r as INT, g as INT, b as INT)

Description

Creates a combined RGB color from separate components.

Parameters

r - Red component of the color

g - Green component of the color

b - Blue component of the color

Return value

A combined color value

Remarks

Component value range is from 0 to 255. Most drawing commands that accept a color value use the RGB format.

Example usage

FRONTPEN mywin, RGB(0,0,255)