|
<?xml version="1.0" encoding="ISO-8859-1"?>
<x_symbol id='xRgbToHex'>
<sources>
<src><file>xrgbtohex.js</file><note><![CDATA[Default.]]></note></src>
</sources>
<copyright>Copyright 2007 Michael Foster (Cross-Browser.com)</copyright>
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
<groups>
<grp>String</grp>
</groups>
<type>Function</type>
<description><![CDATA[Converts three numbers (representing RGB colors) to a hex string in the form "#RRGGBB".]]></description>
<syntax>xRgbToHex(r, g, b)</syntax>
<parameters>
<par>
<name>r</name>
<note><![CDATA[unsigned integer 0..255 - The red value.]]></note>
</par>
<par>
<name>g</name>
<note><![CDATA[unsigned integer 0..255 - The green value.]]></note>
</par>
<par>
<name>b</name>
<note><![CDATA[unsigned integer 0..255 - The blue value.]]></note>
</par>
</parameters>
<return>string</return>
<demos>
<demo>
<url>http://cross-browser.com/x/examples/animation_tech.html</url><note><![CDATA[Animation techniques article and demos.]]></note>
</demo>
</demos>
<revisions>
<rev>
<num>1</num><date>24Mar07</date><author>mf</author><note><![CDATA[initial release]]></note>
</rev>
</revisions>
</x_symbol>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have been a software developer since 2005, focusing on .Net applications with MS SQL backends, and recently, C++ applications in Linux, Mac OS X, and Windows.