Create luminance-hue surface

pth_new_surface(colors, route = c("short", "long"), n_step = 30, ...)

# S3 method for default
pth_new_surface(colors, route = c("short", "long"), n_step = 30, ...)

# S3 method for character
pth_new_surface(
  colors,
  route = c("short", "long"),
  n_step = 30,
  transformer = pth_to_cieluv,
  ...
)

# S3 method for pth_mat
pth_new_surface(colors, route = c("short", "long"), n_step = 30, ...)

Arguments

colors

character hex-codes, or matrix with object with S3 class pth_mat. Must have one or two elements.

route

character, indicates which direction to take around the circle; must be either "short" (default), or "long".

n_step

(double coerced to) integer number of steps to take along luminance domain to calculate maximum chroma.

...

other args, not used

transformer

function used to transform to a color space. Used if colors are hex-codes.

Value

Onject with S3 class pth_new_surface.