VBScript RGB - functie
❮Volledige VBScript-referentie
De RGB-functie retourneert een getal dat een RGB-kleurwaarde vertegenwoordigt.
Syntaxis
RGB(red,green,blue)
Parameter | Description |
---|---|
red | Required. A number from 0 to 255, inclusive, representing the red component of the color |
green | Required. A number from 0 to 255, inclusive, representing the green component of the color |
blue | Required. A number from 0 to 255, inclusive, representing the blue component of the color |
Voorbeelden
voorbeeld 1
<%
response.write(rgb(255,0,0))
%>
De uitvoer van de bovenstaande code zal zijn:
255
Voorbeeld 2
<%
response.write(rgb(255,30,30))
%>
De uitvoer van de bovenstaande code zal zijn:
1974015
❮Volledige VBScript-referentie