Table of Contents

Method CalculateDistance

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

CalculateDistance(Color, Color)

Computes a similarity metric between two Color instances. A larger value indicates more dissimilar colors, while a smaller value indicates more similar colors. The metric is internally consistent for the given algorithm.

double CalculateDistance(Color c1, Color c2)

Parameters

c1 Color

The first color.

c2 Color

The second color.

Returns

double

A numeric value representing the distance between the two colors.