rem: hsvToRGB: function (hue, saturation, value, alpha) { if (arguments.length == 1) { var hsv = hue; hue = hsv.h; saturation = hsv.s; value = hsv.v; alpha = hsv.a; } var red; var green; var blue; if (saturation == 0.0) { red = 0; green = 0; blue = 0; } else { var i = Math.floor(hue * 6); var f = (hue * 6) - i; var p = value * (1 - saturation); var q = value * (1 - (saturation * f)); var t = value * (1 - (saturation * (1 - f))); switch (i) { case 1: red = q; green = value; blue = p; break; case 2: red = p; green = value; blue = t; break; case 3: red = p; green = q; blue = value; break; case 4: red = t; green = p; blue = value; break; case 5: red = value; green = p; blue = q; break; case 6: case 0: red = value; green = t; blue = p; break; } } return { r: red, g: green, b: blue, a: alpha }; }, 
add: },hsvToRGB:function(hue,_498,_499,_500){ if(arguments.length==1){ var hsv=hue; hue=hsv.h; _498=hsv.s; _499=hsv.v; _500=hsv.a; } var red; var _501; var blue; if(_498==0){ red=0; _501=0; blue=0; }else{ var i=Math.floor(hue*6); var f=(hue*6)-i; var p=_499*(1-_498); var q=_499*(1-(_498*f)); var t=_499*(1-(_498*(1-f))); switch(i){ case 1: red=q; _501=_499; blue=p; break; case 2: red=p; _501=_499; blue=t; break; case 3: red=p; _501=q; blue=_499; break; case 4: red=t; _501=p; blue=_499; break; case 5: red=_499; _501=p; blue=q; break; case 6: case 0: red=_499; _501=t; blue=p; break; } } return {r:red,g:_501,b:blue,a:_500}; },hslToRGB:function(hue,_503,_504,_505){ 
context:     hsvToRGB: function (hue, saturation, value, alpha) {        if (arguments.length == 1) {            var hsv = hue;            hue = hsv.h;            saturation = hsv.s;            value = hsv.v;            alpha = hsv.a;        }        var red;        var green;        var blue;        if (saturation == 0.0) {            red = 0;            green = 0;            blue = 0;        } else {            var i = Math.floor(hue * 6);            var f = (hue * 6) - i;            var p = value * (1 - saturation);            var q = value * (1 - (saturation * f));            var t = value * (1 - (saturation * (1 - f)));            switch (i) {                case 1: red = q; green = value; blue = p; break;                case 2: red = p; green = value; blue = t; break;                case 3: red = p; green = q; blue = value; break;                case 4: red = t; green = p; blue = value; break;                case 5: red = value; green = p; blue = q; break;                case 6: // fall through                case 0: red = value; green = t; blue = p; break;            }        }        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