ColorDistance: Computes the perceptional distance between two neighboring...

Description Usage Arguments Value Examples

View source: R/colorpatch_impl.R

Description

Computes the perceptional distance between two neighboring colors

Usage

1
ColorDistance(pal, color.space = "LAB")

Arguments

pal

the color palette

color.space

color space in which the distance shall be computed (default "LAB")

Value

a vector of distances

Examples

1
2
data("OptimGreenRedLAB")
dd <- ColorDistance(OptimGreenRedLAB)

Example output



colorpatch documentation built on May 1, 2019, 10:28 p.m.