Blink text in C#

前端 未结 7 1253
隐瞒了意图╮
隐瞒了意图╮ 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);
            }
        }
    
    0 讨论(0)
提交回复
热议问题