Click or drag to resize

Color.Distance 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.Drawing.Color
First color to compare
value2
Type: Eto.Drawing.Color
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