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

Loading content...

Required methods

fn get_color_difference(&self, other: &Self) -> Self::Scalar[src]

Return the difference or distance between two colors

Loading content...

Implementors

impl<Wp, T> ColorDifference for Lab<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint
[src]

type Scalar = T

impl<Wp, T> ColorDifference for Lch<Wp, T> where
    T: FloatComponent,
    Wp: WhitePoint
[src]

CIEDE2000 distance metric for color difference.

type Scalar = T

Loading content...