Skip to content

Module colors

Coloring utilities

With colors, you pass them to either colors.bg or colors.fg in order to get the actual escape string

console:write(string.format('%sLook at my red text!', colors.fg(colors.red)))

Properties

Property Type Description
black number
red number
green number
yellow number
blue number
magenta number
cyan number
white number
lightBlack number
lightRed number
lightGreen number
lightYellow number
lightBlue number
lightMagenta number
lightCyan number
lightWhite number
resetFg string
resetBg string
bg function (color: number
fg function (color: number

Functions

colors.truecolor(r: number, g: number, b: number): table

Pass to bg or fg in order to get a string