Trait palette::IntoColor [] [src]

pub trait IntoColor<T>: Sized where
    T: Float
{ fn into_xyz(self) -> Xyz<T>; fn into_yxy(self) -> Yxy<T> { ... } fn into_lab(self) -> Lab<T> { ... } fn into_lch(self) -> Lch<T> { ... } fn into_rgb(self) -> Rgb<T> { ... } fn into_hsl(self) -> Hsl<T> { ... } fn into_hsv(self) -> Hsv<T> { ... } fn into_hwb(self) -> Hwb<T> { ... } fn into_luma(self) -> Luma<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