Enum palette::blend::Equation [] [src]

pub enum Equation {
    Add,
    Subtract,
    ReverseSubtract,
    Min,
    Max,
}

A blending equation.

Variants

Add the source and destination, according to sp * S + dp * D.

Subtract the destination from the source, according to sp * S - dp * D.

Subtract the source from the destination, according to dp * D - sp * S.

Create a color where each component is the smallest of each of the source and destination components. A.k.a. component wise min. The parameters are ignored.

Create a color where each component is the largest of each of the source and destination components. A.k.a. component wise max. The parameters are ignored.

Trait Implementations

impl Clone for Equation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Equation
[src]

impl PartialEq for Equation
[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 Equation
[src]

impl Debug for Equation
[src]

Formats the value using the given formatter.