Author: artdaw
Date: 2009-01-20 19:39:10 -0500 (Tue, 20 Jan 2009)
New Revision: 12358
Modified:
trunk/sandbox/ui/colorPicker/src/main/resources/org/richfaces/ui/renderkit/html/scripts/ui.colorpicker.js
Log:
colorPicker: bug in JS fixed
Modified:
trunk/sandbox/ui/colorPicker/src/main/resources/org/richfaces/ui/renderkit/html/scripts/ui.colorpicker.js
===================================================================
---
trunk/sandbox/ui/colorPicker/src/main/resources/org/richfaces/ui/renderkit/html/scripts/ui.colorpicker.js 2009-01-20
20:57:32 UTC (rev 12357)
+++
trunk/sandbox/ui/colorPicker/src/main/resources/org/richfaces/ui/renderkit/html/scripts/ui.colorpicker.js 2009-01-21
00:39:10 UTC (rev 12358)
@@ -425,7 +425,7 @@
var t3 = (t1-t2)*(h%60)/60;
if(h==360) h = 0;
if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3;}
- else if(h<120) {rgb.g=t1; `rgb.b=t2; rgb.r=t1-t3;}
+ else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3;}
else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3;}
else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3;}
else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3;}
Show replies by date