I made a little program that makes your input text colorful. A different color of the rainbow for each char.
here is the code:
foreach (char letter in char_array)
{
switch (random_int)
{
case 1:
Console.ForegroundColor = ConsoleColor.Red;
break;
case 2:
Console.ForegroundColor = ConsoleColor.DarkYellow;
break;
case 3:
Console.ForegroundColor = ConsoleColor.Green;
break;
case 4:
Console.ForegroundColor = ConsoleColor.Blue;
break;
case 5:
Console.ForegroundColor = ConsoleColor.DarkBlue;
break;
case 6:
Console.ForegroundColor = ConsoleColor.Magenta;
break;
}
Console.Write(letter);
Thread.Sleep(20);
random_int = random.Next(1,7);
}
and it works fairly well. I was just wondering if I can copy the colorful text and paste it as is, with the colors.