[][src]Trait nannou::color::blend::BlendFunction

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

A trait for custom blend functions.

Required methods

fn apply_to(
    self,
    source: PreAlpha<C, <C as ComponentWise>::Scalar>,
    destination: PreAlpha<C, <C as ComponentWise>::Scalar>
) -> PreAlpha<C, <C as ComponentWise>::Scalar>

Apply this blend function to a pair of colors.

Loading content...

Implementors

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

impl<C, F> BlendFunction<C> for F where
    C: Blend<Color = C> + ComponentWise,
    F: FnOnce(PreAlpha<C, <C as ComponentWise>::Scalar>, PreAlpha<C, <C as ComponentWise>::Scalar>) -> PreAlpha<C, <C as ComponentWise>::Scalar>,
    <C as ComponentWise>::Scalar: Float
[src]

Loading content...