private static bool RainbowCheck() { if (Imports.IsRainbowMode() || Imports.IsRandomRainbowMode()) { if (Imports.IsRandomRainbowMode()) { Console.SetColor((ConsoleColor)rainbowrand.Next(1, (int)ConsoleColor.White)); } else { Console.SetColor(rainbow); rainbow++; if (rainbow > ConsoleColor.White) { rainbow = ConsoleColor.DarkBlue; } else if (rainbow == ConsoleColor.Gray) { rainbow++; } } return(true); } return(false); }
private static bool RainbowCheck() { if (Imports.IsRainbowMode() || Imports.IsRandomRainbowMode()) { if (Imports.IsRandomRainbowMode()) { System.Console.ForegroundColor = (ConsoleColor)rainbowrand.Next(1, (int)ConsoleColor.White); } else { System.Console.ForegroundColor = rainbow; rainbow++; if (rainbow > ConsoleColor.White) { rainbow = ConsoleColor.DarkBlue; } else if (rainbow == ConsoleColor.Gray) { rainbow++; } } return(true); } return(false); }