code: public void setHSV(int hue, int sat, int val) throws Exception {
  
          if ((hue < 0) || (hue > 360)) {
              throw new Exception();
          }
          if ((sat < 0) || (sat > 100)) {
              throw new Exception();
          }
          if ((val < 0) || (val > 100)) {
              throw new Exception();
          }
  
          m_hue = hue;
          m_sat = (float)sat / 100;
          m_bri = (float)val / 100;
  
          HSVtoRGB(m_hue, m_sat, m_bri);
  
          setHex();
      }
docs: Set the Hue, Saturation and Value (Brightness) variables.<p>
  
  @param hue hue - valid range is 0-359
  @param sat saturation - valid range is 0-100
  @param val brightness - valid range is 0-100
  @throws java.lang.Exception if something goes wrong