pev_data_hcl: Get HCL data on series of hex-colors

Description Usage Arguments Value Examples

View source: R/hcl-data.R

Description

TODO: some notes here on is_rgb_limit being applied to non-cvd case.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pev_data_hcl(hex, ...)

## Default S3 method:
pev_data_hcl(hex, ...)

## S3 method for class 'character'
pev_data_hcl(hex, n = NULL, include_cvd = TRUE,
  ...)

## S3 method for class 'pev_fcont'
pev_data_hcl(hex, n = NULL, include_cvd = TRUE,
  ...)

## S3 method for class 'pev_fdisc'
pev_data_hcl(hex, n = NULL, include_cvd = TRUE,
  ...)

Arguments

hex

character vector of hex-colors

...

other args (not used)

n

integer number of colors to use for unbounded palette-functions

include_cvd

logical or character, indicates to include data for for color-vision deficiency. Possible character values: "none", "protan", "deutan", "tritan".

Value

data.frame with variables cvd, x, hex, hue, chroma, luminance, is_rgb_limit

Examples

1
2

ijlyttle/paleval documentation built on Dec. 25, 2019, 9:17 a.m.