luminal.tools.colors

Module Contents

Classes

Colors

Encapsulates colors that can be used to modify and or customize the current bot terminal.

class Colors

Encapsulates colors that can be used to modify and or customize the current bot terminal.

class Foreground

A collection of available escape code colors for system terminals that change the forground color of the text.

black = '\x1b[30m'
red = '\x1b[31m'
green = '\x1b[32m'
orange = '\x1b[33m'
blue = '\x1b[34m'
purple = '\x1b[35m'
cyan = '\x1b[36m'
lightgrey = '\x1b[37m'
darkgrey = '\x1b[90m'
lightred = '\x1b[91m'
lightgreen = '\x1b[92m'
yellow = '\x1b[93m'
lightblue = '\x1b[94m'
pink = '\x1b[95m'
lightcyan = '\x1b[96m'
class Background

A collection of available escape code colors for system terminals that change the background color of the text.

black = '\x1b[40m'
red = '\x1b[41m'
green = '\x1b[42m'
orange = '\x1b[43m'
blue = '\x1b[44m'
purple = '\x1b[45m'
cyan = '\x1b[46m'
lightgrey = '\x1b[47m'
reset = '\x1b[0m'
bold = '\x1b[01m'
disable = '\x1b[02m'
underline = '\x1b[04m'
reverse = '\x1b[07m'
strikethrough = '\x1b[09m'
invisible = '\x1b[08m'
static random_color()

Returns a random color as an integer.

Returns:

An integer in hexadecimal, e.g: 0xffffff, representing a random color.

Return type:

int