Description Usage Arguments Value Examples
Computes the Euclidean distance between two colors in a given color space (default is Lab).
1 | chroma_distance(color1, color2, mode = c("lab", "rgb", "hsl", "lrgb", "lch"))
|
color1 |
Hexadecimal string or a name for color one. |
color2 |
Hexadecimal string or a name for color two. |
mode |
Color space used for interpolation. |
a numeric
1 2 | chroma_distance("#fff", "#ff0")
chroma_distance("#fff", "#ff0", "rgb")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.