ColorStyle
class ColorStyle (View source)
Class ColorStyle
Methods
__construct(string $fg = '', string $bg = '', array $options = array())
Constructor
string
__toString()
Convert to a string.
static ColorStyle
fromString(string $string)
Create a color style from a parameter string.
string
getStyle()
Get the translated color code.
string
getKnownColors()
Get the known colors.
array
getKnownOptions()
Get the known options.
Details
at line line 98
__construct(string $fg = '', string $bg = '', array $options = array())
Constructor
at line line 153
string
__toString()
Convert to a string.
at line line 170
static ColorStyle
fromString(string $string)
Create a color style from a parameter string.
Example: fg=red;bg=blue;options=bold,blink
at line line 217
string
getStyle()
Get the translated color code.
at line line 246
string
getKnownColors()
Get the known colors.
at line line 258
array
getKnownOptions()
Get the known options.