namespace Terminal.Gui;
///
/// Interface for algorithms that compute the relative distance between pairs of colors.
/// This is used for color matching to a limited palette, such as in Sixel rendering.
///
public interface IColorDistance
{
///
/// Computes a similarity metric between two 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.
///
/// The first color.
/// The second color.
/// A numeric value representing the distance between the two colors.
double CalculateDistance (Color c1, Color c2);
}