Description Usage Arguments Value See Also Examples
View source: R/colorpatch_impl.R
Computes the distance of to colors within a certain colorspace
1 | 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()
1 2 3 | library(colorspace)
library(colorpatch)
DistColor(sRGB(0.1,0.5,0), sRGB(0.2,0.7,1.0), "LUV")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.