YouTip LogoYouTip

Func Rgb

# VBScript RGB Function * * Complete VBScript Reference Manual](#) * * * The RGB function returns a number representing an RGB color value. ### Syntax RGB(red,green,blue) | Parameter | Description | | :--- | :--- | | red | Required. A number between 0 and 255 (inclusive), representing the red component of the color. | | green | Required. A number between 0 and 255 (inclusive), representing the green component of the color. | | blue | Required. A number between 0 and 255 (inclusive), representing the blue component of the color. | ## Examples ## Example 1 document.write(rgb(255,0,0)) Output of the above example: 255 [Try it yourself Β»](#) ## Example 2 document.write(rgb(255,30,30)) Output of the above example: 1974015 [Try it yourself Β»](#) * * Complete VBScript Reference Manual](#)
← Func RoundFunc Msgbox β†’