Interface IColorDistance
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
Methods
- 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.