DistColor {colorpatch} | R Documentation |
Computes the distance of to colors within a certain colorspace
DistColor(x, y, color.space = "LAB")
x |
First color to be compared |
y |
Second color to be compared |
color.space |
Defaults to "LAB" (can be anything within the colorspace package) see colorspace::color |
L2 distance of the two colors within the given coordinate space
colorspace::color, DistColorFun()
library(colorspace)
library(colorpatch)
DistColor(sRGB(0.1,0.5,0), sRGB(0.2,0.7,1.0), "LUV")