rem: var hue = Math.atan2(pos.x, -pos.y) / 6.28; if (hue < 0) hue += 1; fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]); 
add: var hue = Math.atan2(pos.x, -pos.y) / 6.28; if (hue < 0) hue += 1; fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]); 
context:   fb.mousemove = function (event) {    // Get coordinates relative to color picker center    var pos = fb.widgetCoords(event);	  // Set new HSL parameters    if (fb.circleDrag) {  	  var hue = Math.atan2(pos.x, -pos.y) / 6.28;  	  if (hue < 0) hue += 1;  	  fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]);    }    else {  	  var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5));  	  var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5));  	  fb.setHSL([fb.hsl[0], sat, lum]);    }    return false;  }
meta: 639	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/639/49f6f3bf71daf78f75c731db626a40f2284838b2/farbtastic.js/clean/misc/farbtastic/farbtastic.js