rem: if (max == r && max != g) h += (g - b) / delta; if (max == g && max != b) h += (2 + (b - r) / delta); if (max == b && max != r) h += (4 + (r - g) / delta); h /= 6; 
add: if (max == r && max != g) h += (g - b) / delta; if (max == g && max != b) h += (2 + (b - r) / delta); if (max == b && max != r) h += (4 + (r - g) / delta); h /= 6; 
context:   fb.RGBToHSL = function (rgb) {    var min, max, delta, h, s, l;    var r = rgb[0], g = rgb[1], b = rgb[2];    min = Math.min(r, Math.min(g, b));    max = Math.max(r, Math.max(g, b));    delta = max - min;    l = (min + max) / 2;    s = 0;    if (l > 0 && l < 1) {  	  s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));    }    h = 0;    if (delta > 0) {  	  if (max == r && max != g) h += (g - b) / delta;  	  if (max == g && max != b) h += (2 + (b - r) / delta);  	  if (max == b && max != r) h += (4 + (r - g) / delta);  	  h /= 6;    }    return [h, s, l];  }
meta: 10881	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10881/49f6f3bf71daf78f75c731db626a40f2284838b2/farbtastic.js/clean/misc/farbtastic/farbtastic.js