code: public void setRGB(int red, int green, int blue) throws Exception {
  
          if ((red < 0) || (red > 255)) {
              throw new Exception();
          }
          if ((green < 0) || (green > 255)) {
              throw new Exception();
          }
          if ((blue < 0) || (blue > 255)) {
              throw new Exception();
          }
  
          m_red = (float)red / 255;
          m_green = (float)green / 255;
          m_blue = (float)blue / 255;
  
          RGBtoHSV(m_red, m_green, m_blue);
  
          setHex();
      }
docs: Sets the Red, Green, and Blue color variables.<p>
  
  @param red valid range is 0-255
  @param green valid range is 0-255
  @param blue valid range is 0-255
  @throws java.lang.Exception if something goes wrong