Colors
trait Colors
Methods
Reset all colors and styles.
Make the text bold.
Make the text dim.
Make the text italic.
Underline the text.
Invert the text and background colors.
Hide the text.
Strike through the text.
Set the text color to black.
Set the text color to red.
Set the text color to green.
Set the text color to yellow.
Set the text color to blue.
Set the text color to magenta.
Set the text color to cyan.
Set the text color to white.
Set the text background to black.
Set the text background to red.
Set the text background to green.
Set the text background to yellow.
Set the text background to blue.
Set the text background to magenta.
Set the text background to cyan.
Set the text background to white.
Set the text color to gray.
Details
at line 12
string
reset(string $text)
Reset all colors and styles.
at line 20
string
bold(string $text)
Make the text bold.
at line 28
string
dim(string $text)
Make the text dim.
at line 36
string
italic(string $text)
Make the text italic.
at line 44
string
underline(string $text)
Underline the text.
at line 52
string
inverse(string $text)
Invert the text and background colors.
at line 60
string
hidden(string $text)
Hide the text.
at line 68
string
strikethrough(string $text)
Strike through the text.
at line 76
string
black(string $text)
Set the text color to black.
at line 84
string
red(string $text)
Set the text color to red.
at line 92
string
green(string $text)
Set the text color to green.
at line 100
string
yellow(string $text)
Set the text color to yellow.
at line 108
string
blue(string $text)
Set the text color to blue.
at line 116
string
magenta(string $text)
Set the text color to magenta.
at line 124
string
cyan(string $text)
Set the text color to cyan.
at line 132
string
white(string $text)
Set the text color to white.
at line 140
string
bgBlack(string $text)
Set the text background to black.
at line 148
string
bgRed(string $text)
Set the text background to red.
at line 156
string
bgGreen(string $text)
Set the text background to green.
at line 164
string
bgYellow(string $text)
Set the text background to yellow.
at line 172
string
bgBlue(string $text)
Set the text background to blue.
at line 180
string
bgMagenta(string $text)
Set the text background to magenta.
at line 188
string
bgCyan(string $text)
Set the text background to cyan.
at line 196
string
bgWhite(string $text)
Set the text background to white.
at line 204
string
gray(string $text)
Set the text color to gray.