DistColor: Computes the distance of to colors within a certain...

Description Usage Arguments Value See Also Examples

View source: R/colorpatch_impl.R

Description

Computes the distance of to colors within a certain colorspace

Usage

1
DistColor(x, y, color.space = "LAB")

Arguments

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

Value

L2 distance of the two colors within the given coordinate space

See Also

colorspace::color, DistColorFun()

Examples

1
2
3
library(colorspace)
library(colorpatch)
DistColor(sRGB(0.1,0.5,0), sRGB(0.2,0.7,1.0), "LUV")

colorpatch documentation built on May 1, 2019, 10:28 p.m.