title: Scrolling through colors effect in RGB
body: <p>I want to create a colour scroller effect. I have a function that I give it RGB values (eg. setColor(189,234,45)) and I want to change the colour rapidly but I don't want to get many repeats to create an effect of scrolling through the colours.</p>
  
  <p>I have tried tried the following but it doesn't quite generate the effect that I am looking for.</p>
  
  <pre><code>for (int i = 0; i &lt; 256; i++) {
      for (int j = 0; j &lt; 256; j++) {
        for (int k = 0; k &lt; 256; k++) {
          setColor(i, j, k);
        }
      }
    }
  </code></pre>
  
  <p>I wanted to know if anyone knows how the colour scroller's colours are arranged next to each other. The arrangement I am looking for looks like the <a href="http://vddotnet.erdalhalici.com/images/ColorPicker/ColorPickerUICMYKHSBColorSpace.PNG" rel="nofollow">scroll on the right</a>.</p>