Uses farver::compare_colour() to calculate perceptual distances along intervals over a palette-function.

get_distance(pal_luv, n = 20, method = "cie2000", ...)

Arguments

pal_luv

function with S3 class "cpath_pal_luv"

n

numeric number of intervals into which to split domain of the palette.

method

character method to use for distance, one of "cie2000", "euclidean", "cie1976", "cie94", or "cmc".

...

other arguments sent to farver::compare_colour().

Value

numeric vector, length n, perceptual distances for each interval.