[][src]Trait palette::blend::BlendFunction

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

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>

Apply this blend function to a pair of colors.

Loading content...

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]

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

Loading content...