foreground method

String foreground(
  1. AsciiInk colour
)

Paints the text, from either colour table.

'warning'.foreground(colours.high_yellow);
'warning'.foreground(const AsciiColourRgb.hex(0xFFCC00));

Implementation

String foreground(AsciiInk colour) => _wrap(colour.fg);