View source: R/utils_css_color.R
color_distance | R Documentation |
Compute color distance
color_distance(x, y)
x |
|
y |
|
num
A representation of the distance for comparison with other distances
Other color:
color_cycle()
,
color_luminance()
,
color_match()
,
color_rgb_table()
,
color_separate()
,
color_text_by_luminance()
,
colors2css()
,
css_col2vec()
,
luminance_filter()
,
rgb2hex()
color_distance(c(a = "rgba(111,96,140,1)"), c("#12B4D3", "green"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.