Skip to contents

Qualitative color ramp derived from active branding. This ramp excludes Bootstrap's white, black, light and gray colors, which are typically used for textual elements. By default the color ramp is 90% transparent.

Usage

brand.colors(n = NULL, colors = pal(), alpha = 0.9, ...)

Arguments

n

number of colors to interpolate

colors

colors to interpolate; must be a valid argument to col2rgb().

alpha

logical: should alpha channel (opacity) values be returned? It is an error to give a true value if space is specified.

...

Arguments passed on to grDevices::colorRampPalette

Value

vector of n interpolated colors

Examples

scales::show_col(brand.colors(alpha=1))

scales::show_col(brand.colors(11, alpha=1, interpolate="spline"))

scales::show_col(brand.colors(16))

scales::show_col(brand.colors(4, alpha=.5))