Okay so I've been trying for a few days now and just can not seem to figure this algorithm out. Right now I'm trying it with a while loop but still not working.
Basically here is my snippet. It's on a timer for 10ms.
void colorScrollRotation(object sender, EventArgs e)
{
int colorRed = 10;
int colorGreen = 30;
int colorBlue = 10;
int colorCount = 0;
while (colorCount != 500)
{
colorRed++;
colorGreen++;
colorBlue++;
if (colorGreen == 192)
{
colorRed = 10;
colorBlue = 10;
colorGreen = 30;
}
agInc.ForeColor = Color.FromArgb(colorRed, colorGreen, colorBlue);
colorCount = colorRed + colorGreen + colorBlue;
}
}
Now it changes the color the first 10ms, but then never changes again. I just want a simple green major hue shift for my label. Any help would be appreciated.