pub enum BlendPattern {
Show 27 variants
Alpha = 0,
Additive = 1,
Multiply = 2,
Screen = 3,
Overlay = 4,
Darken = 5,
Lighten = 6,
ColorDodge = 7,
ColorBurn = 8,
HardLight = 9,
SoftLight = 10,
Difference = 11,
Exclusion = 12,
Plasma = 13,
Snail = 14,
Triangle = 15,
Donuts = 16,
Checkerboard = 17,
HorizontalStripes = 18,
VerticalStripes = 19,
DiagonalStripes = 20,
Radial = 21,
Angular = 22,
PerlinNoise = 23,
Voronoi = 24,
Wave = 25,
RandomPixel = 26,
}Expand description
Blending patterns for double-presets.
These 27 patterns are inspired by MilkDrop3 and provide various ways to combine two presets visually.
Variants§
Alpha = 0
Simple alpha blend
Additive = 1
Additive blending
Multiply = 2
Multiply blending
Screen = 3
Screen blending
Overlay = 4
Overlay blending
Darken = 5
Darken (min)
Lighten = 6
Lighten (max)
ColorDodge = 7
Color dodge
ColorBurn = 8
Color burn
HardLight = 9
Hard light
SoftLight = 10
Soft light
Difference = 11
Difference
Exclusion = 12
Exclusion
Plasma = 13
Plasma blend
Snail = 14
Snail blend (spiral pattern)
Triangle = 15
Triangle blend
Donuts = 16
Donuts blend (circular pattern)
Checkerboard = 17
Checkerboard blend
HorizontalStripes = 18
Horizontal stripes
VerticalStripes = 19
Vertical stripes
DiagonalStripes = 20
Diagonal stripes
Radial = 21
Radial blend (from center)
Angular = 22
Angular blend (rotating)
PerlinNoise = 23
Perlin noise blend
Voronoi = 24
Voronoi blend
Wave = 25
Wave blend (sine wave pattern)
RandomPixel = 26
Random pixel blend
Implementations§
Source§impl BlendPattern
impl BlendPattern
Sourcepub fn all() -> Vec<BlendPattern>
pub fn all() -> Vec<BlendPattern>
Get all available blend patterns.
Sourcepub fn from_index(index: usize) -> Option<BlendPattern>
pub fn from_index(index: usize) -> Option<BlendPattern>
Get pattern from index.
Trait Implementations§
Source§impl Clone for BlendPattern
impl Clone for BlendPattern
Source§fn clone(&self) -> BlendPattern
fn clone(&self) -> BlendPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlendPattern
impl Debug for BlendPattern
Source§impl<'de> Deserialize<'de> for BlendPattern
impl<'de> Deserialize<'de> for BlendPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BlendPattern
impl PartialEq for BlendPattern
Source§impl Serialize for BlendPattern
impl Serialize for BlendPattern
impl Copy for BlendPattern
impl Eq for BlendPattern
impl StructuralPartialEq for BlendPattern
Auto Trait Implementations§
impl Freeze for BlendPattern
impl RefUnwindSafe for BlendPattern
impl Send for BlendPattern
impl Sync for BlendPattern
impl Unpin for BlendPattern
impl UnwindSafe for BlendPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more