RGB

From NSB App Studio
Revision as of 11:59, 6 November 2012 by Ghenne (talk | contribs) (Ghenne moved page Rgb to RGB)
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