DarkGDK color gradient code
<p>I'm trying to make a color gradient (blue to white, left to right) using C++ (DarkGDK Library). I'm trying to accomplish this using nested for loops.
Here's what I have so far:</p>

<pre><code>#include "DarkGDK.h"

void DarkGDK()
{
    int colorDepth = dbScreenDepth();
    dbSetDisplayMode(256,256,colorDepth);
    dbClear(0,0,255);
    for (int y = 0; y &lt; 255; y++)
    {
        for (int x = 0; x &lt; 255; x++)
        {

        }
    }
    dbWaitKey();
}
</code></pre>

<p>I can't figure out what to do to make the red and green values go up by 1 each time an iteration is made. I've been staring at this for 3 hours and have made no progress...</p>

<p>Any help would be appreciated.</p>
