Enum luminance::blending::Factor [] [src]

pub enum Factor {
    One,
    Zero,
    SrcColor,
    NegativeSrcColor,
    DestColor,
    NegativeDestColor,
    SrcAlpha,
    NegativeSrcAlpha,
    DstAlpha,
    NegativeDstAlpha,
    SrcAlphaSaturate,
}

Variants

One

1 * color = factor

Zero

0 * color = 0

SrcColor

src * color

NegativeSrcColor

(1 - src) * color

DestColor

dst * color

NegativeDestColor

(1 - dst) * color

SrcAlpha

srcA * color

NegativeSrcAlpha

(1 - src) * color

DstAlpha

dstA * color

NegativeDstAlpha

(1 - dstA) * color

SrcAlphaSaturate

Trait Implementations

impl Debug for Factor
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Factor
[src]

fn clone(&self) -> Factor

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Factor
[src]