Trait palette::IntoColor [] [src]

pub trait IntoColor<Wp = D65, T = f32>: Sized where
    T: Float,
    Wp: WhitePoint
{ fn into_xyz(self) -> Xyz<Wp, T>; fn into_yxy(self) -> Yxy<Wp, T> { ... }
fn into_lab(self) -> Lab<Wp, T> { ... }
fn into_lch(self) -> Lch<Wp, T> { ... }
fn into_rgb<S: RgbSpace<WhitePoint = Wp>>(self) -> Rgb<Linear<S>, T> { ... }
fn into_hsl<S: RgbSpace<WhitePoint = Wp>>(self) -> Hsl<S, T> { ... }
fn into_hsv<S: RgbSpace<WhitePoint = Wp>>(self) -> Hsv<S, T> { ... }
fn into_hwb<S: RgbSpace<WhitePoint = Wp>>(self) -> Hwb<S, T> { ... }
fn into_luma(self) -> Luma<Wp, T> { ... } }

IntoColor provides conversion between the colors.

It requires into into_xyz and derives conversion to other colors as a default from this. These defaults must be overridden when direct conversion exists between colors.

Required Methods

Convert into XYZ space

Provided Methods

Convert into Yxy color space

Convert into L*a*b* color space

Convert into L*C*h° color space

Convert into RGB color space.

Convert into HSL color space

Convert into HSV color space

Convert into HWB color space

Convert into Luma

Implementors