wb_color: Helper to create a color

View source: R/class-color.R

wb_colorR Documentation

Helper to create a color

Description

Creates a wbColour object.

Usage

wb_color(
  name = NULL,
  auto = NULL,
  indexed = NULL,
  hex = NULL,
  theme = NULL,
  tint = NULL
)

Arguments

name

A name of a color known to R either as name or RGB/ARGB value.

auto

A boolean.

indexed

An indexed color value. This color has to be provided by the workbook.

hex

A rgb color either a ARGB hex value or RGB hex value With or without leading "#".

theme

A zero based index referencing a value in the theme.

tint

A tint value applied. Range from -1 (dark) to 1 (light).

Value

a wbColour object

See Also

wb_get_base_colors() grDevices::colors()


openxlsx2 documentation built on Oct. 18, 2024, 1:07 a.m.