Blink text in C#

前端 未结 7 1251
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 03:17

How do i blink the text in console using C#?

7条回答
  •  囚心锁ツ
    2021-01-14 03:45

        private void timer1_Tick(object sender, EventArgs e)//This might work better for you :)
        {
            Random rand = new Random();
            for (int i = 0; i < 255; i++)
            {
                int A = rand.Next(i);
                int R = rand.Next(i);
                int G = rand.Next(i);
                int B = rand.Next(i);
                label2.ForeColor = Color.FromArgb(A, R, G, B);
            }
        }
    

提交回复
热议问题