Generate versions of colors using color-vision deficiency simulation.

pth_data_cvd(x, cvd = pth_cvd_grid(), ...)

# S3 method for default
pth_data_cvd(x, cvd = pth_cvd_grid(), ...)

# S3 method for character
pth_data_cvd(x, cvd = pth_cvd_grid(), transformer = pth_to_cieluv, ...)

# S3 method for pth_hex
pth_data_cvd(x, cvd = pth_cvd_grid(), transformer = pth_to_cieluv, ...)

# S3 method for pth_palette
pth_data_cvd(x, cvd = pth_cvd_grid(), n_point = 11, ...)

# S3 method for pth_mat
pth_data_cvd(x, cvd = pth_cvd_grid(), ...)

Arguments

x

character, pth_mat, or pth_palette: a means to express color

cvd

tbl_df with columns condition, severity; see pth_cvd_grid().

...

other args, not used.

transformer

function used to transform the colors to new color space, e.g. pth_to_cieluv.

n_point

integer number of points from the palette.

Value

tibble with columns "hex_original", "condition", "severity", "luminance", "chroma", "hue", "hex".