Trait palette::ColorDifference [−][src]
pub trait ColorDifference { type Scalar: FloatComponent; fn get_color_difference(&self, other: &Self) -> Self::Scalar; }
A trait for calculating the color difference between two colors.
Associated Types
type Scalar: FloatComponent
[src]
The type of the calculated color difference
Required methods
fn get_color_difference(&self, other: &Self) -> Self::Scalar
[src]
Return the difference or distance between two colors
Implementors
impl<Wp, T> ColorDifference for Lab<Wp, T> where
T: FloatComponent,
Wp: WhitePoint,
[src]
impl<Wp, T> ColorDifference for Lab<Wp, T> where
T: FloatComponent,
Wp: WhitePoint,
[src]type Scalar = T
fn get_color_difference(&self, other: &Lab<Wp, T>) -> Self::Scalar
[src]
impl<Wp, T> ColorDifference for Lch<Wp, T> where
T: FloatComponent,
Wp: WhitePoint,
[src]
impl<Wp, T> ColorDifference for Lch<Wp, T> where
T: FloatComponent,
Wp: WhitePoint,
[src]CIEDE2000 distance metric for color difference.