int r = 244;
int g = 65;
int b = 65;
private void Rr_Tick(object sender, EventArgs e)
{
if (b >= 244)
{
r -= 1;
siticoneCustomCheckBox1.CheckedState.FillColor = Color.FromArgb(r, g, b);
flatTrackBar1.ColorScheme1 = Color.FromArgb(r, g, b); flatTrackBar1.ColorScheme2 = Color.FromArgb(r, g, b);
flatTrackBar2.ColorScheme1 = Color.FromArgb(r, g, b); flatTrackBar2.ColorScheme2 = Color.FromArgb(r, g, b);
if (r <= 65)
{
Rr.Stop();
Gg.Start();
}
}
if (b <= 65)
{
r += 1;
siticoneCustomCheckBox1.CheckedState.FillColor = Color.FromArgb(r, g, b);
flatTrackBar1.ColorScheme1 = Color.FromArgb(r, g, b); flatTrackBar1.ColorScheme2 = Color.FromArgb(r, g, b);
flatTrackBar2.ColorScheme1 = Color.FromArgb(r, g, b); flatTrackBar2.ColorScheme2 = Color.FromArgb(r, g, b);
if (r >= 244)
{
Rr.Stop();
Gg.Start();
}
}
}
private void Gg_Tick(object sender, EventArgs e)
{
if (r <= 65)
{
g += 1;
siticoneCustomCheckBox1.CheckedState.FillColor = Color.FromArgb(r, g, b);
flatTrackBar1.ColorScheme1 = Color.FromArgb(r, g, b); flatTrackBar1.ColorScheme2 = Color.FromArgb(r, g, b);
flatTrackBar2.ColorScheme1 = Color.FromArgb(r, g, b); flatTrackBar2.ColorScheme2 = Color.FromArgb(r, g, b);
if (g >= 244)
{
Gg.Stop();
Bb.Start();
}
}
if (r >= 244)
{
g -= 1;
siticoneCustomCheckBox1.CheckedState.FillColor = Color.FromArgb(r, g, b);
flatTrackBar1.ColorScheme1 = Color.FromArgb(r, g, b); flatTrackBar1.ColorScheme2 = Color.FromArgb(r, g, b);
flatTrackBar2.ColorScheme1 = Color.FromArgb(r, g, b); flatTrackBar2.ColorScheme2 = Color.FromArgb(r, g, b);
if (g <= 65)
{
Gg.Stop();
Bb.Start();
}
}
}