Module coroner.color

An extension of the default string library, providing a single function string.color.

Copyright (c) 2016 Jesse Paroz (https://github.com/jparoz/string.color)

Functions

string.color (s, f, b, bold, underline, swap) Change color of a string.

Tables

colors Recognized color names.


Functions

string.color (s, f, b, bold, underline, swap)
Change color of a string.

Parameters:

  • s string a string.
  • f string foreground color name.
  • b string background color name.
  • bold boolean use bold style.
  • underline boolean underline the text.
  • swap boolean swap foreground and backgroud colors.

See also:

Tables

colors
Recognized color names.

Fields:

  • black Black
  • red Red
  • green Green
  • yellow Yellow
  • blue Blue
  • magenta Magenta
  • cyan Cyan
  • white White
  • brblack Bright Black
  • brred Bright Red
  • brgreen Bright Green
  • bryellow Bright Yellow
  • brblue Bright Blue
  • brmagenta Bright Magenta
  • brcyan Bright Cyan
  • brwhite Bright White
generated by LDoc 1.4.3 Last updated 2016-08-15 00:59:34