Trait palette::chromatic_adaptation::AdaptInto
source · pub trait AdaptInto<D, Swp, Dwp, T>: Sized{
// Required method
fn adapt_into_using<M: TransformMatrix<Swp, Dwp, T>>(self, method: M) -> D;
// Provided method
fn adapt_into(self) -> D { ... }
}
Expand description
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§
sourcefn adapt_into_using<M: TransformMatrix<Swp, Dwp, T>>(self, method: M) -> D
fn adapt_into_using<M: TransformMatrix<Swp, Dwp, T>>(self, method: M) -> D
Convert the source color to the destination color using the specified method
Provided Methods§
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford method by default
Object Safety§
This trait is not object safe.