Struct palette::blend::Equations [] [src]

pub struct Equations {
    pub color_equation: Equation,
    pub alpha_equation: Equation,
    pub color_parameters: Parameters,
    pub alpha_parameters: Parameters,
}

A pair of blending equations and corresponding parameters.

The Equations type is similar to how blending works in OpenGL, where a blend function has can be written as e(sp * S, dp * D). e is the equation (like s + d), sp and dp are the source and destination parameters, and S and D are the source and destination colors.

Fields

The equation for the color components.

The equation for the alpha component.

The parameters for the color components.

The parameters for the alpha component.

Methods

impl Equations
[src]

Create a pair of blending equations, where all the parameters are One.

Create a pair of additive blending equations with the provided parameters.

Trait Implementations

impl Clone for Equations
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Equations
[src]

impl PartialEq for Equations
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Equations
[src]

impl Debug for Equations
[src]

Formats the value using the given formatter.

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

Apply this blend function to a pair of colors.