[−][src]Trait amethyst_rendy::palette::chromatic_adaptation::AdaptFrom
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
fn adapt_from_using<M>(color: S, method: M) -> Self where
M: TransformMatrix<Swp, Dwp, T>,
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified method
Provided methods
fn adapt_from(color: S) -> Self
Convert the source color to the destination color using the bradford method by default
Implementors
impl<S, D, Swp, Dwp, T> AdaptFrom<S, Swp, Dwp, T> for D where
D: FromColor<Dwp, T>,
Dwp: WhitePoint,
S: IntoColor<Swp, T>,
Swp: WhitePoint,
T: Component + Float,
[src]
D: FromColor<Dwp, T>,
Dwp: WhitePoint,
S: IntoColor<Swp, T>,
Swp: WhitePoint,
T: Component + Float,
fn adapt_from_using<M>(color: S, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,