add color to console
console.log('%cTest message', 'color: #008000; font-weight:bold;');
add color to console
console.log('%cTest message', 'color: #008000; font-weight:bold;');
color console
const str = 'text';
console.log ( '%c%s', 'color: green; font: 1.2rem/1 Tahoma;', str );
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;
}
color console
console.log("%cThis will be formatted with large, blue text", "color: blue; font-size: x-large");
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us