RGB: Difference between revisions
Jump to navigation
Jump to search
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..." |
No edit summary |
||
Line 1: | Line 1: | ||
RGB(''red'', ''green'', ''blue'') | 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. | 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 == | |||
<pre> | <pre> | ||
Rem RGB Example | |||
'RGB returns a combined color value | 'RGB returns a combined color value | ||
Print "Black=" & RGB(0,0,0) | Print "Black=" & RGB(0,0,0) | ||
Line 16: | Line 16: | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 24: | Line 24: | ||
0 16777215 215 | 0 16777215 215 | ||
</pre> | </pre> | ||
[[Category:Language Reference]] |
Revision as of 02:54, 17 August 2012
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