Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript RGB function


May 13, 2021 VBScript


Table of contents


VBScript RGB function

Use the RGB function if you need to represent RGB color values in VBScript!


VBScript RGB function Complete VBScript reference manual

The RGB function returns a number that represents the value of the RGB color.

Grammar

RGB(red,green,blue)

parameter describe
red Required.Digital between 0 - 255 (and included), represents a red portion of the color.
green Required.The numbers between 0 - 255 (and include) represent the green part of the color.
blue Required.The numbers between 0 - 255 (and include) represent the blue portion of the color.

Instance 1

<script type="text/vbscript">

document.write(rgb(255,0,0))

</script>

The above example output results:

255

Try it out . . .

Instance 2

<script type="text/vbscript">

document.write(rgb(255,30,30))

</script>

The above example output results:

1974015

Try it out . . .

VBScript RGB function Complete VBScript reference manual

Related articles

The color value