Sign In

$colorDistance[]

Calculates the distance between two colors using a specified formula. Defaults to cie76.

v1.0.2+ Requires Brackets

Usage

$colorDistance[;;]
Also callable as
$colorDifference $colorDiff $colorSimilarity

Arguments

NameTypeRequiredDescription
color 1
StringYesThe first color.
color 2
StringYesThe second color.
mode
NoDistance mode: rgb, weighted, cie76, or luminance.

Output

Number

Was this page helpful?