|
<?xml version="1.0" encoding="ISO-8859-1"?>
<x_symbol id='xParseColor'>
<sources>
<src><file>xparsecolor.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[Parse a color string or number into its components.]]></description>
<syntax>xParseColor(c)</syntax>
<parameters>
<par><name>c</name><note><![CDATA[An unsigned integer or a string. If a string then it must be in "rgb(num, num, num)" or "#RRGGBB" format.]]></note></par>
</parameters>
<return><![CDATA[
[code]It returns an object with these properties:
r - numeric value of red
g - numeric value of green
b - numeric value of blue
n - numeric value of argument
s - hex string value of argument (includes '#' prefix)[/code]
]]></return>
<dependencies>
<dep>xStr</dep>
<dep>xHex</dep>
</dependencies>
<demos>
<demo><url>http://cross-browser.com/x/examples/animation_tech.html</url><note><![CDATA[Article and demos on animation techniques.]]></note></demo>
</demos>
<revisions>
<rev><num>1</num><date>17Mar2007</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.