[][src]Trait nannou::color::IntoColor

pub trait IntoColor<T> 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

fn into_xyz(self) -> Xyz<T>

Convert into XYZ space

Loading content...

Provided methods

fn into_yxy(self) -> Yxy<T>

Convert into Yxy color space

fn into_lab(self) -> Lab<T>

Convert into Lab* color space

fn into_lch(self) -> Lch<T>

Convert into LCh° color space

fn into_rgb(self) -> Rgb<T>

Convert into RGB color space.

fn into_hsl(self) -> Hsl<T>

Convert into HSL color space

fn into_hsv(self) -> Hsv<T>

Convert into HSV color space

fn into_hwb(self) -> Hwb<T>

Convert into HWB color space

fn into_luma(self) -> Luma<T>

Convert into Luma

Loading content...

Implementors

impl<T> IntoColor<T> for Hwb<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

impl<T> IntoColor<T> for Lab<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

impl<T> IntoColor<T> for Lch<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

impl<T> IntoColor<T> for Luma<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

impl<T> IntoColor<T> for Xyz<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

impl<T> IntoColor<T> for Yxy<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

impl<T> IntoColor<T> for Hsl<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

impl<T> IntoColor<T> for Hsv<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

impl<T> IntoColor<T> for Rgb<T> where
    T: Float
[src]

fn into_hwb(self) -> Hwb<T>[src]

Loading content...