toFg method

AnsiColor toFg()

Converts this instance to a foreground-only AnsiColor using the background color.

Useful when you want to apply the same color as a foreground instead.

Implementation

AnsiColor toFg() => AnsiColor.fg(bg);