code: function HSVToRGB (hue, sat, val) {
    if (hue > 1) {
      throw new Error('HSVToRGB expects hue < 1');
    }
  
    const rgb = [];
  
    if (sat === 0) {
      rgb[0] = val;
      rgb[1] = val;
      rgb[2] = val;
  
      return rgb;
    }
  
    const hueCase = Math.floor(hue * 6);
    const frac = 6 * hue - hueCase;
    const lx = val * (1 - sat);
    const ly = val * (1 - sat * frac);
    const lz = val * (1 - sat * (1 - frac));
  
    switch (hueCase) {
  
    /* 0<hue<1/6 */
    case 0:
    case 6:
      rgb[0] = val;
      rgb[1] = lz;
      rgb[2] = lx;
      break;
  
      /* 1/6<hue<2/6 */
    case 1:
      rgb[0] = ly;
      rgb[1] = val;
      rgb[2] = lx;
      break;
  
      /* 2/6<hue<3/6 */
    case 2:
      rgb[0] = lx;
      rgb[1] = val;
      rgb[2] = lz;
      break;
  
      /* 3/6<hue/4/6 */
    case 3:
      rgb[0] = lx;
      rgb[1] = ly;
      rgb[2] = val;
      break;
  
      /* 4/6<hue<5/6 */
    case 4:
      rgb[0] = lz;
      rgb[1] = lx;
      rgb[2] = val;
      break;
  
      /* 5/6<hue<1 */
    case 5:
      rgb[0] = val;
      rgb[1] = lx;
      rgb[2] = ly;
      break;
    }
  
    return rgb;
  }
docs: Converts an HSV  (Hue, Saturation, Value) color to RGB (Red, Green, Blue) color value
  @param {Number} hue A number representing the hue color value
  @param {any} sat A number representing the saturation color value
  @param {any} val A number representing the value color value
  @returns {Numberp[]} An RGB color array