RGB

From NSB App Studio
Revision as of 18:58, 8 July 2012 by Brendon (talk | contribs) (Created page with "RGB(''red'', ''green'', ''blue'') '''Description''' RGB returns a whole number representing an RGB color value. ''red'', ''green'' and ''blue'' are numbers from 0-255 repre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RGB(red, green, blue)

Description

RGB returns a whole number representing an RGB color value. red, green and blue are numbers from 0-255 representing their respective components in the color.

Example

REM RGB Example
'RGB returns a combined color value
Print "Black=" & RGB(0,0,0)
Print "White=" & RGB(255,255,255)
Print "Red=" & RGB(255,0,0)
Print vbBlack, vbWhite, vbRed

Output

Black=0
White=16777215
Red=255
0 16777215 215