[−][src]Enum screen_13::gpu::BlendMode
Specifies a method for combining two images using a mathmatical formula.
Variants
Blend formula: a + b
Blend formula:
Blend formula: 1 - (1 - a) / b
Blend formula: a / (1 - b)
Blend formula:
Blend formula: min(a, b)
Blend formula: min(a, b) (per-component)
Blend formula: abs(a - b)
Blend formula: a / b
Blend formula: a + b - 2 * a * b
Blend formula: hard_light(a, b) (per-component)
Where:
- hard_light(a, b) = if b < 0.5 { 2 * a * b } else { 1 - 2 * (1 - a) * (1 - b) }
Blend formula: hard_mix(a, b) (per-component)
Where:
- hard_mix(a, b) = if b < 0.5 { 2 * a * b } else { 1 - 2 * (1 - a) * (1 - b) }
Blend formula: a + b - 1
Blend formula: a * b
Blend formula: b
NOTE: This is the default blend mode.
Blend formula: overlay(a, b) (per-component)
Where:
- overlay(a, b) = if b < 0.5 { 2 * a * b } else { 1 - 2 * (1 - a) * (1 - b) }
Blend formula: 1 - (1 - a) * (1 - b)
Blend formula: a - b
Blend formula: vivid_light(a, b) (per-component)
Where:
- vivid_light(a, b) = if b < 0.5 { 1 - (1 - a) / b } else { a / (1 - b) }
Trait Implementations
impl Clone for BlendMode
[src]
impl Copy for BlendMode
[src]
impl Debug for BlendMode
[src]
impl Default for BlendMode
[src]
impl Eq for BlendMode
[src]
impl Hash for BlendMode
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<BlendMode> for BlendMode
[src]
pub fn eq(&self, other: &BlendMode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for BlendMode
[src]
impl StructuralPartialEq for BlendMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlendMode
[src]
impl Send for BlendMode
[src]
impl Sync for BlendMode
[src]
impl Unpin for BlendMode
[src]
impl UnwindSafe for BlendMode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,