rem: hslToRGB: function (hue, saturation, lightness, alpha) { if (arguments.length == 1) { var hsl = hue; hue = hsl.h; saturation = hsl.s; lightness = hsl.l; alpha = hsl.a; } var red; var green; var blue; if (saturation == 0) { red = lightness; green = lightness; blue = lightness; } else { var m2; if (lightness <= 0.5) { m2 = lightness * (1.0 + saturation); } else { m2 = lightness + saturation - (lightness * saturation); } var m1 = (2.0 * lightness) - m2; var f = MochiKit.Color._hslValue; var h6 = hue * 6.0; red = f(m1, m2, h6 + 2); green = f(m1, m2, h6); blue = f(m1, m2, h6 - 2); } return { r: red, g: green, b: blue, a: alpha }; }, 
add: },hslToRGB:function(hue,_503,_504,_505){ if(arguments.length==1){ var hsl=hue; hue=hsl.h; _503=hsl.s; _504=hsl.l; _505=hsl.a; } var red; var _506; var blue; if(_503==0){ red=_504; _506=_504; blue=_504; }else{ var m2; if(_504<=0.5){ m2=_504*(1+_503); }else{ m2=_504+_503-(_504*_503); } var m1=(2*_504)-m2; var f=MochiKit.Color._hslValue; var h6=hue*6; red=f(m1,m2,h6+2); _506=f(m1,m2,h6); blue=f(m1,m2,h6-2); } return {r:red,g:_506,b:blue,a:_505}; },rgbToHSV:function(red,_510,blue,_511){ 
context:     hslToRGB: function (hue, saturation, lightness, alpha) {        if (arguments.length == 1) {            var hsl = hue;            hue = hsl.h;            saturation = hsl.s;            lightness = hsl.l;            alpha = hsl.a;        }        var red;        var green;        var blue;        if (saturation == 0) {            red = lightness;            green = lightness;            blue = lightness;        } else {            var m2;            if (lightness <= 0.5) {                m2 = lightness * (1.0 + saturation);            } else {                m2 = lightness + saturation - (lightness * saturation);            }            var m1 = (2.0 * lightness) - m2;            var f = MochiKit.Color._hslValue;            var h6 = hue * 6.0;            red = f(m1, m2, h6 + 2);            green = f(m1, m2, h6);            blue = f(m1, m2, h6 - 2);        }        return {            r: red,            g: green,            b: blue,            a: alpha        };    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js