Click or drag to resize

ColorCMYKDistance Method

Calculates the 'distance' of two CMYK colors

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static float Distance(
	ColorCMYK value1,
	ColorCMYK value2
)

Parameters

value1
Type: Eto.DrawingColorCMYK
First color to compare
value2
Type: Eto.DrawingColorCMYK
Second color to compare

Return Value

Type: Single
The overall distance/difference between the two colours. A lower value indicates a closer match
Remarks
This is useful for comparing two different color values to determine if they are similar. Typically though, Distance(ColorHSL, ColorHSL) gives the best result instead of this method.
See Also