color_distance: Compute color distance

View source: R/utils_css_color.R

color_distanceR Documentation

Compute color distance

Description

Compute color distance

Usage

color_distance(x, y)

Arguments

x

num/chr A Named vector of CSS hex or rgb/rgba color

y

num/chr A Named vector of CSS hex or rgb/rgba color

Value

num A representation of the distance for comparison with other distances

See Also

Other color: color_cycle(), color_luminance(), color_match(), color_rgb_table(), color_separate(), color_text_by_luminance(), colors2css(), css_col2vec(), luminance_filter(), rgb2hex()

Examples

color_distance(c(a = "rgba(111,96,140,1)"), c("#12B4D3", "green"))

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.