toBg method

AnsiColor toBg()

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

Useful when you want to reverse the color to be a background.

Implementation

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