color

get colored version of given string


Parameters

color string :string

Attributes

rgb:integeruse specific RGB color
bold:booleanbold font
black:booleanblack foreground color
red:booleanred foreground color
green:booleangreen foreground color
yellow:booleanyellow foreground color
blue:booleanblue foreground color
magenta:booleanmagenta foreground color
cyan:booleancyan foreground color
white:booleanwhite foreground color
gray:booleangray foreground color

Returns

  • :string

Examples

copy
print color.green "Hello!" ; Hello! (in green) print color.red.bold "Some text" ; Some text (in red/bold)

Related