cmd

helper functions for stylized printing to the console

virtuosity.cmd

Objects

Methods


Objects

color

set console text color. Add to the stringh to change the color.

virtuosity.cmd.color

backgroundColor

set console text background color. Add to the stringh to change the background color.

virtuosity.cmd.backgroundColor

style

set the style of the text

virtuosity.cmd.style


Methods

log

console.log() with stylizations with preventing overflow

virtuosity.cmd.log(string, color, backgroundColor);


Parameter Type Description
string String string to output
color String color of text (cmd.color)
backgroundColor String bacground color of text (cmd.backgroundColor)