Description Usage Arguments Value Examples
View source: R/colorpatch_impl.R
Creates a color distance function
1 | DistColorFun(color.space = "LAB")
|
color.space |
Color space to be used (see colorspace::color) |
A function mapping two color values of a color class colorspace::color to a numeric value.
1 2 3 4 5 6 | library(colorspace)
library(colorpatch)
fn <- DistColorFun("LUV")
a <- sRGB(1,0,0)
b <- sRGB(0.8,0.1,0)
my.distance <- fn(a,b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.