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

pub trait AdaptFrom<S, Swp, Dwp, T> where
    T: Component + Float,
    Swp: WhitePoint,
    Dwp: WhitePoint
{ fn adapt_from_using<M>(color: S, method: M) -> Self
    where
        M: TransformMatrix<Swp, Dwp, T>
; fn adapt_from(color: S) -> Self { ... } }
Expand description

Trait to convert color from one reference white point to another

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

Required methods

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

Provided methods

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

Implementors