वीबीस्क्रिप्ट आरजीबी फंक्शन
❮ पूर्ण वीबीस्क्रिप्ट संदर्भ
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
❮ पूर्ण वीबीस्क्रिप्ट संदर्भ