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
type Scalar: FloatComponent
type Scalar: FloatComponent
The type of the calculated color difference
Required methods
fn get_color_difference(&self, other: &Self) -> Self::Scalar
fn get_color_difference(&self, other: &Self) -> Self::Scalar
Return the difference or distance between two colors