title: Creating Java Color objects using HSB values
body: <p>I am trying to use create a Color object using HSB value but I am having some trouble.</p>
  
  <pre><code>for(int i = 0; i&lt;255; i++)
  {
     Color c = Color.getHSBColor(i,100,100);
     System.out.println(c);
  }
  </code></pre>
  
  <p>I would expect this to rotate through all hues, but instead every color has the same RGB value of RGB(251,251,2)</p>
  
  <p>The output is </p>
  
  <pre><code>java.awt.Color[r=251,g=251,b=2]
  java.awt.Color[r=251,g=251,b=2]
  java.awt.Color[r=251,g=251,b=2]
  ....
  </code></pre>
  
  <p>Any idea what I am doing wrong?
  Thanks</p>