Horje
system.drawing.color to system.consolecolor Code Example
system.drawing.color to system.consolecolor
int index = (c.R > 128 | c.G > 128 | c.B > 128) ? 8 : 0;
                index |= (c.R > 64) ? 4 : 0; 
                index |= (c.G > 64) ? 2 : 0; 
                index |= (c.B > 64) ? 1 : 0; 
                Console.ForegroundColor = (System.ConsoleColor)index;




Csharp

Related
c# nunit test case Code Example c# nunit test case Code Example
How to execute script in C# Code Example How to execute script in C# Code Example
c# insert character into string at position Code Example c# insert character into string at position Code Example
value is null to insert in c# Code Example value is null to insert in c# Code Example
moving camera with touch screen unity Code Example moving camera with touch screen unity Code Example

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