compare {khroma} | R Documentation |
Color Difference
Description
Computes CIELAB distance metric.
Usage
compare(x, metric = 2000, diag = FALSE, upper = FALSE)
Arguments
x |
A |
metric |
An |
diag |
A |
upper |
A |
Value
Author(s)
N. Frerebeau
See Also
Other diagnostic tools:
change()
,
plot.color_scheme()
,
plot_map()
,
plot_scheme()
,
plot_scheme_colourblind()
,
plot_tiles()
Examples
# Trichromat
pal <- colour("bright")
compare(pal(5))
# Deuteranopia
deu <- change(pal, mode = "deuteranopia")
compare(deu(5))
# Protanopia
pro <- change(pal, mode = "protanopia")
compare(pro(5))
# Tritanopia
tri <- change(pal, mode = "tritanopia")
compare(tri(5))
# Achromatopsia
ach <- change(pal, mode = "achromatopsia")
compare(ach(5))
[Package khroma version 1.13.0 Index]