code: function rgbHandler(rgb,lights){
     var hsv=rgbToHsv(rgb[0],rgb[1],rgb[2]);
     var out=new Array();
     if (lights.colorSet) out.push(lights.colorSet(hsv[0]))
     if (lights.saturationSet) out.push(lights.saturationSet(hsv[1]))
     return out;
  
   }
docs: Converts an RGB color value to HSV. Conversion formula
  adapted from http://en.wikipedia.org/wiki/HSV_color_space.
  Assumes r, g, and b are contained in the set [0, 255] and
  returns h, s, and v in the set [0, 1].
  
  @param   Number  r       The red color value
  @param   Number  g       The green color value
  @param   Number  b       The blue color value
  @return  Array           The HSV representation