DistColor {colorpatch}R Documentation

Computes the distance of to colors within a certain colorspace

Description

Computes the distance of to colors within a certain colorspace

Usage

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

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

[Package colorpatch version 0.1.2 Index]