Calculates the distance of the two colors in the RGB scale
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static float Distance(
Color value1,
Color value2
)
Public Shared Function Distance (
value1 As Color,
value2 As Color
) As Single
static member Distance :
value1 : Color *
value2 : Color -> float32
Parameters
- value1
- Type: Eto.DrawingColor
First color to compare - value2
- Type: Eto.DrawingColor
Second color to compare with
Return Value
Type:
SingleThe overall distance/difference between the two colours. A lower value indicates a closer match
See Also