Click or drag to resize

ColorDistance Method

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
)

Parameters

value1
Type: Eto.DrawingColor
First color to compare
value2
Type: Eto.DrawingColor
Second color to compare with

Return Value

Type: Single
The overall distance/difference between the two colours. A lower value indicates a closer match
See Also