Uses farver::compare_colour()
to calculate perceptual distances
along intervals over a palette-function.
get_distance(pal_luv, n = 20, method = "cie2000", ...)
function
with S3 class "cpath_pal_luv"
numeric
number of intervals into which to split domain
of the palette.
character
method to use for distance, one of
"cie2000"
, "euclidean"
, "cie1976"
, "cie94"
, or "cmc"
.
other arguments sent to farver::compare_colour()
.
numeric
vector, length n
, perceptual distances for
each interval.