Trait nannou::color::chromatic_adaptation::AdaptInto[][src]

pub trait AdaptInto<D, Swp, Dwp, T> where
    T: Component + Float,
    Swp: WhitePoint,
    Dwp: WhitePoint
{ pub fn adapt_into_using<M>(self, method: M) -> D
    where
        M: TransformMatrix<Swp, Dwp, T>
; pub fn adapt_into(self) -> D { ... } }

Trait to convert color with one reference white point into another

Converts a color with the source white point (Swp) into the destination white point (Dwp). Uses the bradford method for conversion by default.

Required methods

pub fn adapt_into_using<M>(self, method: M) -> D where
    M: TransformMatrix<Swp, Dwp, T>, 
[src]

Convert the source color to the destination color using the specified method

Loading content...

Provided methods

pub fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default

Loading content...

Implementors

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

Loading content...