pub enum Factor {
One,
Zero,
SrcColor,
SrcColorComplement,
DestColor,
DestColorComplement,
SrcAlpha,
SrcAlphaComplement,
DstAlpha,
DstAlphaComplement,
SrcAlphaSaturate,
}
Expand description
Blending factors. Pixel data are multiplied by these factors to achieve several effects driven by blending equations.
Variants
One
1 * color = color
Zero
0 * color = 0
SrcColor
src * color
SrcColorComplement
(1 - src) * color
DestColor
dst * color
DestColorComplement
(1 - dst) * color
SrcAlpha
srcA * color
SrcAlphaComplement
(1 - src) * color
DstAlpha
dstA * color
DstAlphaComplement
(1 - dstA) * color
SrcAlphaSaturate
For colors, min(srcA, 1 - dstA)
, for alpha, 1
Trait Implementations
impl Copy for Factor
impl Eq for Factor
impl StructuralEq for Factor
impl StructuralPartialEq for Factor
Auto Trait Implementations
impl RefUnwindSafe for Factor
impl Send for Factor
impl Sync for Factor
impl Unpin for Factor
impl UnwindSafe for Factor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more