pub trait BlendFunction<C: Blend<Color = C> + ComponentWise>
where C::Scalar: Float,
{ // Required method fn apply_to( self, source: PreAlpha<C, C::Scalar>, destination: PreAlpha<C, C::Scalar> ) -> PreAlpha<C, C::Scalar>; }
Expand description

A trait for custom blend functions.

Required Methods§

source

fn apply_to( 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§

source§

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>,

source§

impl<C: Blend<Color = C> + ComponentWise + Clone> BlendFunction<C> for Equations
where C::Scalar: Float,