[−][src]Trait amethyst_rendy::palette::blend::BlendFunction
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>
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.
Implementors
impl<C> BlendFunction<C> for Equations where
C: Blend<Color = C> + ComponentWise + Clone,
<C as ComponentWise>::Scalar: Float,
[src]
C: Blend<Color = C> + ComponentWise + Clone,
<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>
[src]
self,
source: PreAlpha<C, <C as ComponentWise>::Scalar>,
destination: PreAlpha<C, <C as ComponentWise>::Scalar>
) -> PreAlpha<C, <C as ComponentWise>::Scalar>
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]
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,
fn apply_to(
self,
source: PreAlpha<C, <C as ComponentWise>::Scalar>,
destination: PreAlpha<C, <C as ComponentWise>::Scalar>
) -> PreAlpha<C, <C as ComponentWise>::Scalar>
[src]
self,
source: PreAlpha<C, <C as ComponentWise>::Scalar>,
destination: PreAlpha<C, <C as ComponentWise>::Scalar>
) -> PreAlpha<C, <C as ComponentWise>::Scalar>