Funkce VBScript RGB
❮ Kompletní VBScript Reference
Funkce RGB vrací číslo, které představuje hodnotu barvy RGB.
Syntax
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 |
Příklady
Příklad 1
<%
response.write(rgb(255,0,0))
%>
Výstupem výše uvedeného kódu bude:
255
Příklad 2
<%
response.write(rgb(255,30,30))
%>
Výstupem výše uvedeného kódu bude:
1974015
❮ Kompletní VBScript Reference