Função RGB VBScript
❮ Referência completa do VBScript
A função RGB retorna um número que representa um valor de cor RGB.
Sintaxe
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 |
Exemplos
Exemplo 1
<%
response.write(rgb(255,0,0))
%>
A saída do código acima será:
255
Exemplo 2
<%
response.write(rgb(255,30,30))
%>
A saída do código acima será:
1974015
❮ Referência completa do VBScript