I am making a UI for a friend and I want it to be unique(ish).
I want to make the background and text color transition in a loop upon start up.
What I have is:
public frmKaliUI()
{
InitializeComponent();
colorFade1();
}
private async void colorFade1()
{
Color c = Color.FromArgb(139, 0, 139);
for (int i = 255; i > 0; i--)
{
c = Color.FromArgb(139, i, 139);
this.BackColor = c;
await Task.Delay(50);
}
}
EDIT: Once "i" reaches 255 the for loop stops and the color does not transition. Is there a way to make this an infinite loop