[−][src]Trait palette::blend::BlendFunction
A trait for custom blend functions.
Required methods
fn apply_to(
self,
source: PreAlpha<C, C::Scalar>,
destination: PreAlpha<C, C::Scalar>
) -> PreAlpha<C, C::Scalar>
self,
source: PreAlpha<C, C::Scalar>,
destination: PreAlpha<C, C::Scalar>
) -> PreAlpha<C, C::Scalar>
Apply this blend function to a pair of colors.
Implementors
impl<C, F> BlendFunction<C> for F where
C: Blend<Color = C> + ComponentWise,
C::Scalar: Float,
F: FnOnce(PreAlpha<C, C::Scalar>, PreAlpha<C, C::Scalar>) -> PreAlpha<C, C::Scalar>,
[src]
C: Blend<Color = C> + ComponentWise,
C::Scalar: Float,
F: FnOnce(PreAlpha<C, C::Scalar>, PreAlpha<C, C::Scalar>) -> PreAlpha<C, C::Scalar>,
fn apply_to(
self,
source: PreAlpha<C, C::Scalar>,
destination: PreAlpha<C, C::Scalar>
) -> PreAlpha<C, C::Scalar>
[src]
self,
source: PreAlpha<C, C::Scalar>,
destination: PreAlpha<C, C::Scalar>
) -> PreAlpha<C, C::Scalar>
impl<C: Blend<Color = C> + ComponentWise + Clone> BlendFunction<C> for Equations where
C::Scalar: Float,
[src]
C::Scalar: Float,