Funzione RGB VBScript


❮ Riferimento completo di VBScript

La funzione RGB restituisce un numero che rappresenta un valore di colore RGB.

Sintassi

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

Esempi

Esempio 1

<%

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

%>

L'output del codice sopra sarà:

255

Esempio 2

<%

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

%>

L'output del codice sopra sarà:

1974015

❮ Riferimento completo di VBScript