VBScript- RGB - Funktion


❮ Vollständige VBScript-Referenz

Die RGB-Funktion gibt eine Zahl zurück, die einen RGB-Farbwert darstellt.

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

Beispiele

Beispiel 1

<%

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

%>

Die Ausgabe des obigen Codes lautet:

255

Beispiel 2

<%

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

%>

Die Ausgabe des obigen Codes lautet:

1974015

❮ Vollständige VBScript-Referenz