hcl2hex: Convert an HCL palette to hex RGB

Description Usage Arguments Value

View source: R/converters.R

Description

Converts an HCL color palette supplied as a dataframe or individual arguments to an RGB palette. Returns a character vector of hex RGB colors.

Usage

1
hcl2hex(hcl = NULL, H = NULL, C = NULL, L = NULL)

Arguments

hcl

Optional data frame with three columns: $H, $C, $L. (default = NULL)

H

Numeric. Hue angle (mod 360).

C

Numeric. Chroma. Minimum value = 0. Maximum possible depends on Hue and Lightness (about 100 to 150)

L

Numeric. Lightness (0 to 100)

Value

Character vector. A palette (vector of hex RGB colors).


allopole/datacolor documentation built on May 4, 2019, 6:39 p.m.