| make_fg {cursr} | R Documentation |
Create Foreground Color
Description
Returns the ANSI code for the specified foreground color. make_fg accepts numeric values (RGB or 8-bit color code), hexadecimal characters, or the name of the color.
Usage
make_fg(...)
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_bg(),
make_style(),
reset(),
style()
Examples
# Different methods of specifying red
make_fg("red")
make_fg("#FF0000")
make_fg(9)
make_fg(255, 0, 0)
[Package cursr version 0.1.0 Index]