Fungsi RGB VBScript


Referensi VBScript Lengkap

Fungsi RGB mengembalikan angka yang mewakili nilai warna RGB.

Sintaksis

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

Contoh

Contoh 1

<%

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

%>

Output dari kode di atas akan menjadi:

255

Contoh 2

<%

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

%>

Output dari kode di atas akan menjadi:

1974015

Referensi VBScript Lengkap