◆ __construct()
__construct |
( |
string |
$foreground = '' , |
|
|
string |
$background = '' , |
|
|
array |
$options = [] |
|
) |
| |
◆ apply()
◆ convertHexColorToAnsi()
convertHexColorToAnsi |
( |
int |
$color | ) |
|
|
private |
◆ degradeHexColorToAnsi()
degradeHexColorToAnsi |
( |
int |
$r, |
|
|
int |
$g, |
|
|
int |
$b |
|
) |
| |
|
private |
◆ getSaturation()
getSaturation |
( |
int |
$r, |
|
|
int |
$g, |
|
|
int |
$b |
|
) |
| |
|
private |
◆ parseColor()
parseColor |
( |
string |
$color, |
|
|
bool |
$background = false |
|
) |
| |
|
private |
◆ set()
◆ unset()
◆ $background
◆ $foreground
const const const $foreground |
|
private |
Valeur initiale :=> 22],
'underscore' => ['set' => 4, 'unset' => 24],
'blink' => ['set' => 5, 'unset' => 25],
'reverse' => ['set' => 7, 'unset' => 27],
'conceal' => ['set' => 8, 'unset' => 28],
]
Référencé par Color\__construct(), et Color\set().
◆ $options
◆ AVAILABLE_OPTIONS
const const const AVAILABLE_OPTIONS |
|
private |
Valeur initiale := [
'bold' => ['set' => 1
◆ BRIGHT_COLORS
const const BRIGHT_COLORS |
|
private |
◆ COLORS
La documentation de cette classe a été générée à partir du fichier suivant :