Okay so I got the original working and is fairly simple. Only problem is I can't figure out how to set it up to scroll one color section after the other. Like this pseudo code would be:
if (color1 >= 255)
{
color2++;
}
if (color2 >= 255)
{
color3++;
}
if (color >= 255)
{
color1++;
}
So I'm bringing in while loops and everything else but it's not wanting to work at all. Help is appreciated.
void colorScrollRotation(object sender, EventArgs e)
{
Color colorMe = agInc.ForeColor;
Color colorMeRotation = label1.ForeColor;
int colorRed = colorMe.R;
int colorGreen = colorMe.G;
int colorBlue = colorMe.B;
int rotation = colorMeRotation.R;
while (rotation == 0)
{
colorGreen++;
if (colorGreen >= 255)
{
colorGreen = 0;
rotation = 1;
label1.ForeColor = Color.FromArgb(rotation, 0, 0);
}
}
while (rotation == 1)
{
colorRed++;
if (colorRed >= 255)
{
colorRed = 0;
rotation = 2;
label1.ForeColor = Color.FromArgb(rotation, 0, 0);
}
}
while (rotation == 2)
{
colorBlue++;
if (colorBlue >= 255)
{
colorBlue = 0;
rotation = 0;
label1.ForeColor = Color.FromArgb(rotation, 0, 0);
}
}
agInc.ForeColor = Color.FromArgb(colorRed, colorGreen, colorBlue);
label1.ForeColor = Color.FromArgb(rotation, 0, 0);
}