rem: return new Array(0, 0, v); 
add: if(v > 0) return new Array(0, 0, v); return new Array(0, 255, 0); 
context: function rgb_string_to_hsv(rgb_str){  //  Expected input is on form "#rrggbb"  var r = hex_to_int(rgb_str.substring(1, 3));  var g = hex_to_int(rgb_str.substring(3, 5));  var b = hex_to_int(rgb_str.substring(5, 7));  var min, max, delta;  var h, s, v;  min = Math.min(r, g, b);  max = Math.max(r, g, b);  delta = max - min;  v = max;  if (max > 0 && delta > 0) {    s = Math.round(255.0 * delta / max);  } else {    return new Array(0, 0, v);  }  if (r == max) {    h = 1.0 * (g - b) / delta;  } else if (g == max) {    h = 2 + 1.0 * (b - r) / delta;  } else {    h = 4 + 1.0 * (r - g) / delta;  }  h = h * 60.0;  if (h < 0)    h += 360.0;    return new Array(Math.round(h * 255.0 / 360.0), s, v);}
meta: 2059	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/0729a18ff50464c95f3ce7221365af9bebdcb9b3/ColorSelector.js/clean/server/modules/tags/javascript_support/scripts/ColorSelector.js