get colored version of given string
Parameters
color string :string
Attributes
rgb | :integer | use specific RGB color |
bold | :boolean | bold font |
black | :boolean | black foreground color |
red | :boolean | red foreground color |
green | :boolean | green foreground color |
yellow | :boolean | yellow foreground color |
blue | :boolean | blue foreground color |
magenta | :boolean | magenta foreground color |
cyan | :boolean | cyan foreground color |
white | :boolean | white foreground color |
gray | :boolean | gray foreground color |
Returns
Examples
copy
print color.green "Hello!" ; Hello! (in green)
print color.red.bold "Some text" ; Some text (in red/bold)
Related