pth_data_surface_raster: Dataset for hue surfaces

View source: R/plot-data.R

pth_data_surface_rasterR Documentation

Dataset for hue surfaces

Description

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.

Usage

pth_data_surface_raster(x, ...)

## Default S3 method:
pth_data_surface_raster(x, ...)

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

## S3 method for class '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


ijlyttle/colorpath documentation built on Sept. 13, 2022, 7:44 p.m.