Rainbow Console Color Switch
switch (segment[1]) { case "rainbow": if (Commands.adminScript) { Console.BackgroundColor = ConsoleColor.Red; Console.Clear(); Console.BackgroundColor = ConsoleColor.DarkRed; Console.Clear(); Console.BackgroundColor = ConsoleColor.Yellow; Console.Clear(); Console.BackgroundColor = ConsoleColor.DarkYellow; Console.Clear(); Console.BackgroundColor = ConsoleColor.Green; Console.Clear(); Console.BackgroundColor = ConsoleColor.DarkGreen; Console.Clear(); Console.BackgroundColor = ConsoleColor.Cyan; Console.Clear(); Console.BackgroundColor = ConsoleColor.DarkCyan; Console.Clear(); Console.BackgroundColor = ConsoleColor.Blue; Console.Clear(); Console.BackgroundColor = ConsoleColor.DarkBlue; Console.Clear(); Console.BackgroundColor = ConsoleColor.Magenta; Console.Clear(); Console.BackgroundColor = ConsoleColor.DarkMagenta; Console.Clear(); Console.BackgroundColor = ConsoleColor.Black; Console.Clear(); Console.BackgroundColor = ConsoleColor.White; (130 lines left)
A dark-themed screenshot shows C# code switching the console background through a sequence of rainbow colors, from red and yellow to green, cyan, blue, magenta, black, and white. The joke is that an apparently simple rainbow effect requires a long, repetitive block of code, making it a humorous reaction to overengineering or unnecessarily verbose programming. EN: A dark-themed screenshot shows C# code switching the console background through a sequence of rainbow colors, from red and yellow to green, cyan, blue, magenta, black, and white. The joke is that an apparently simple rainbow effect requires a long, repetitive block of code, making it a humorous reaction to overengineering or unnecessarily verbose programming.
- @right_wing_dev_squads / 7469 2023-08-25
- Type
- image
- Size
- 607×542 · 50.5 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added