pub enum BlendMode {
Normal,
Add,
Multiply,
Screen,
Mask,
Copy,
}
Expand description
Variants
Normal
Blends the source color on top of the destination, respecting transparency. *
Add
Adds the source and destination colors, lightening the final image. *
Multiply
Multiplies the source and destination colors, darkening the final image. *
Screen
Inverts and multiplies the source and destination colors, lightening the final image. *
Mask
Masks the overlapping area by applying the source alpha to the destination image.
WARNING: In HTML5 canvas, this blend mode is unbounded. It will clear the entire destination image, not just the bounds within the source image. *
Copy
Ignores the destination color, and copies the source without handling transparency.
WARNING: In HTML5 canvas, this blend mode is unbounded. It will clear the entire destination image, not just the bounds within the source image. *
Trait Implementations
impl Copy for BlendMode
Auto Trait Implementations
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnwindSafe for BlendMode
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<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.