colours top-level constant
AsciiColours
const colours
Every colour of the 256-colour table, ready to drop into a string.
print('${colours.red.fg}${colours.white.bg}alarming$reset');
Also reachable as Ascii.colour, and as the SCREAMING_CASE constants at
the bottom of this file if you would rather not go through an object.
The names follow the table's own three blocks. black to high_white are
the sixteen whose exact shade the terminal theme decides; rgb_rgb is the
6x6x6 cube, each digit 0-5, so rgb_500 is full red and rgb_555 is
white; gray0 to gray23 is the ramp from near-black to near-white.
Implementation
const AsciiColours colours = AsciiColours();