rem: rgbToHSV: function (red, green, blue, alpha) { if (arguments.length == 1) { var rgb = red; red = rgb.r; green = rgb.g; blue = rgb.b; alpha = rgb.a; } var max = Math.max(Math.max(red, green), blue); var min = Math.min(Math.min(red, green), blue); var hue; var saturation; var value = max; if (min == max) { hue = 0; saturation = 0; } else { var delta = (max - min); saturation = delta / max;  if (red == max) { hue = (green - blue) / delta; } else if (green == max) { hue = 2 + ((blue - red) / delta); } else { hue = 4 + ((red - green) / delta); } hue /= 6; if (hue < 0) { hue += 1; } if (hue > 1) { hue -= 1; } } return { h: hue, s: saturation, v: value, a: alpha }; }, 
add: },rgbToHSV:function(red,_510,blue,_511){ if(arguments.length==1){ var rgb=red; red=rgb.r; _510=rgb.g; blue=rgb.b; _511=rgb.a; } var max=Math.max(Math.max(red,_510),blue); var min=Math.min(Math.min(red,_510),blue); var hue; var _514; var _515=max; if(min==max){ hue=0; _514=0; }else{ var _516=(max-min); _514=_516/max; if(red==max){ hue=(_510-blue)/_516; }else{ if(_510==max){ hue=2+((blue-red)/_516); }else{ hue=4+((red-_510)/_516); } } hue/=6; if(hue<0){ hue+=1; } if(hue>1){ hue-=1; } } return {h:hue,s:_514,v:_515,a:_511}; },rgbToHSL:function(red,_517,blue,_518){ 
context:     rgbToHSV: function (red, green, blue, alpha) {        if (arguments.length == 1) {            var rgb = red;            red = rgb.r;            green = rgb.g;            blue = rgb.b;            alpha = rgb.a;        }        var max = Math.max(Math.max(red, green), blue);        var min = Math.min(Math.min(red, green), blue);        var hue;        var saturation;        var value = max;        if (min == max) {            hue = 0;            saturation = 0;        } else {            var delta = (max - min);            saturation = delta / max;            if (red == max) {                hue = (green - blue) / delta;            } else if (green == max) {                hue = 2 + ((blue - red) / delta);            } else {                hue = 4 + ((red - green) / delta);            }            hue /= 6;            if (hue < 0) {                hue += 1;            }            if (hue > 1) {                hue -= 1;            }        }        return {            h: hue,            s: saturation,            v: value,            a: alpha        };    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js