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
)
Public Shared Function Distance (
value1 As ColorCMYK,
value2 As ColorCMYK
) As Single
static member Distance :
value1 : ColorCMYK *
value2 : ColorCMYK -> float32
Parameters
- value1
- Type: Eto.DrawingColorCMYK
First color to compare - value2
- Type: Eto.DrawingColorCMYK
Second color to compare
Return Value
Type:
SingleThe 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