pub trait ColorDifference {
    type Scalar: FloatComponent;

    fn get_color_difference(&self, other: &Self) -> Self::Scalar;
}
Expand description

A trait for calculating the color difference between two colors.

Required Associated Types

The type of the calculated color difference

Required Methods

Return the difference or distance between two colors

Implementors

CIEDE2000 distance metric for color difference.