VBScriptRGB関数_
❮完全なVBScriptリファレンス
RGB関数は、RGBカラー値を表す数値を返します。
構文
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 |
例
例1
<%
response.write(rgb(255,0,0))
%>
上記のコードの出力は次のようになります。
255
例2
<%
response.write(rgb(255,30,30))
%>
上記のコードの出力は次のようになります。
1974015
❮完全なVBScriptリファレンス