Core\Cli\Color
A terminal colour: one of the sixteen named colours, or any RGB colour. A terminal that shows fewer colours gets the nearest colour it can show.
Members
2 members.
| Member | Signature |
|---|---|
index | index(uint $index): Core\Cli\Color |
rgb | rgb(uint $red, uint $green, uint $blue): Core\Cli\Color |
Constants
Core\Cli\Color::BLACKANSI palette entry 0 — black, as the terminal's theme renders it.Core\Cli\Color::REDANSI palette entry 1 — red.Core\Cli\Color::GREENANSI palette entry 2 — green.Core\Cli\Color::YELLOWANSI palette entry 3 — yellow.Core\Cli\Color::BLUEANSI palette entry 4 — blue.Core\Cli\Color::MAGENTAANSI palette entry 5 — magenta.Core\Cli\Color::CYANANSI palette entry 6 — cyan.Core\Cli\Color::WHITEANSI palette entry 7 — white, which a light theme renders as near-black.Core\Cli\Color::BRIGHT_BLACKANSI palette entry 8 — the grey a terminal shows for dimmed text.Core\Cli\Color::BRIGHT_REDANSI palette entry 9 — bright red.Core\Cli\Color::BRIGHT_GREENANSI palette entry 10 — bright green.Core\Cli\Color::BRIGHT_YELLOWANSI palette entry 11 — bright yellow.Core\Cli\Color::BRIGHT_BLUEANSI palette entry 12 — bright blue.Core\Cli\Color::BRIGHT_MAGENTAANSI palette entry 13 — bright magenta.Core\Cli\Color::BRIGHT_CYANANSI palette entry 14 — bright cyan.Core\Cli\Color::BRIGHT_WHITEANSI palette entry 15 — bright white.
