The calculation is a somewhat slow - at the "root" of the speed problem is the calculation of the maximum chroma. In the future, we could imagine providing a lookup table, as colorspace does, to speed things up.

pth_data_surface_raster(x, ...)

# S3 method for default
pth_data_surface_raster(x, ...)

# S3 method for pth_palette_path
pth_data_surface_raster(x, step = 0.5, ...)

# S3 method for pth_hue_surface
pth_data_surface_raster(x, step = 0.5, constructor = pth_new_cieluv, ...)

Arguments

x

function with S3 class pth_palette_path or pth_hue_surface.

...

other arguments passed on to constructor.

step

numeric size of step in luminance and chroma.

constructor

function that constructs a pth_mat, used to identify the color space for the output matrix.

Value

tibble with columns luminance, chroma, hue, hex