ฟังก์ชันVBScript RGB
❮ การอ้างอิง 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 ที่สมบูรณ์