make_bg: Create Background Color

Description Usage Arguments Value See Also Examples

View source: R/3-Style.R

Description

Returns the ANSI code for the specified background color. make_bg accepts numeric values (RGB or 8-bit color code), hexadecimal characters, or the name of the color.

Usage

1

Arguments

...

character or numeric value

Value

ANSI character string

See Also

Other style functions: attr_off(), attr_on(), bg_off(), bg_on(), color_off(), color_pair(), fg_off(), fg_on(), make_fg(), make_style(), reset(), style()

Examples

1
2
3
4
5
# Different methods of specifying cyan
make_bg("cyan")
make_bg("#00FFFF")
make_bg(14)
make_bg(0, 255, 255)

cursr documentation built on Jan. 13, 2021, 7:35 a.m.