وظيفة 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