code: function rgbToHsv(r, g, b) {
  
      r = bound01(r, 255);
      g = bound01(g, 255);
      b = bound01(b, 255);
  
      var max = mathMax(r, g, b), min = mathMin(r, g, b);
      var h, s, v = max;
  
      var d = max - min;
      s = max === 0 ? 0 : d / max;
  
      if(max == min) {
          h = 0; // achromatic
      }
      else {
          switch(max) {
              case r: h = (g - b) / d + (g < b ? 6 : 0); break;
              case g: h = (b - r) / d + 2; break;
              case b: h = (r - g) / d + 4; break;
          }
          h /= 6;
      }
      return { h: h, s: s, v: v };
  }
docs: `rgbToHsv` Converts an RGB color value to HSV *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1] *Returns:* { h, s, v } in [0,1]