bg_fg_col: Get foreground and background colors

Description Usage Arguments Value

Description

Get foreground and background colors

Usage

1
2
3
col_bg(x = NA, fade = 0)

col_fg(x = NA, fade = 0)

Arguments

x

A color palette as returned by get_pal or a string corresponding to one of the 31 themes available in RStudio (see list_pal). If NA, the function tries to retrieve the active theme using rstudioapi.

fade

A numeric value from 0 to 1. How much the color should be faded (in the background/foreground color).

Value

A color (hexadecimal format).


fkeck/editheme documentation built on May 29, 2019, 2:34 p.m.