Creates a text style from the background color.

Synopsis

Declared in <fmt/color.h>

constexpr
text_style
bg(/* implementation-defined */ background) noexcept;

Return Value

A text style with only the given background color set.

Parameters

Name

Description

background

The background color.

Created with MrDocs