Trait palette::ColorDifference[][src]

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.

Associated Types

The type of the calculated color difference

Required methods

Return the difference or distance between two colors

Implementors