User:Harthur/ColorConversion: Difference between revisions

Jump to navigation Jump to search
Line 2: Line 2:
download: [http://colorplay.googlecode.com/files/colorCommon.js colorCommon.js]
download: [http://colorplay.googlecode.com/files/colorCommon.js colorCommon.js]


This is a javascript library for converting colors between different color formats. It supports rgb, hsl, and hsv. To call a method of the library simply say <tt>colorCommon.methodName()</tt>. Valid color strings can take one of the following formats: <tt>#00FF00</tt>, <tt>rgb(0, 255, 0)</tt>, <tt>rgb(0%, 100%, 0%)</tt>, <tt>hsl(120, 100%, 50%)</tt>, <tt>hsv(120, 100%, 100%)</tt>
This is a javascript library for converting colors between different color formats. It supports rgb, hsl, and hsv. To call a method of the library simply say <tt>colorCommon.methodName()</tt>. Valid color strings can take one of the following formats: <tt>#00FF00</tt>, <tt>rgb(0, 255, 0)</tt>, <tt>rgb(0%, 100%, 0%)</tt>, <tt>hsl(120, 100%, 50%)</tt>, <tt>hsv(120, 100%, 100%)</tt>. If a non-valid color string is passed in an <tt>"InvalidColorValue"</tt> exception is thrown
 
= API =
= API =


865

edits

Navigation menu