Horje
c# console foreground color Code Example
c# change colour of console
			Console.BackgroundColor = ConsoleColor.Green;
            Console.ForegroundColor = ConsoleColor.DarkGreen;
            Console.Clear();
            //green on green
            Console.WriteLine("yo");
            Console.ReadLine();
        
c# console foreground color
Console.ForegroundColor = ConsoleColor.DarkGreen;
c# color to console color
 public static ConsoleColor FromColor(Color c)
        {
            int index = (c.R > 128 | c.G > 128 | c.B > 128) ? 8 : 0; // Bright bit
            index |= (c.R > 64) ? 4 : 0; // Red bit
            index |= (c.G > 64) ? 2 : 0; // Green bit
            index |= (c.B > 64) ? 1 : 0; // Blue bit

            return (System.ConsoleColor)index;
        }
c# console foreground color
//Background color
Console.BackgroundColor = ConsoleColor.Green;
//Foreground color
Console.ForegroundColor = ConsoleColor.Black;
//Reset
Console.ResetColor();




Csharp

Related
how to play animation with code in unity Code Example how to play animation with code in unity Code Example
call function from another script unity Code Example call function from another script unity Code Example
how to remove space between string in c# Code Example how to remove space between string in c# Code Example
delete all dir content c# Code Example delete all dir content c# Code Example
list of string to string c# Code Example list of string to string c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10