pub struct Turbulence {
    pub(crate) base_frequency_x: PositiveF32,
    pub(crate) base_frequency_y: PositiveF32,
    pub(crate) num_octaves: u32,
    pub(crate) seed: i32,
    pub(crate) stitch_tiles: bool,
    pub(crate) kind: TurbulenceKind,
}Expand description
A turbulence generation filter primitive.
feTurbulence element in the SVG.
Fields§
§base_frequency_x: PositiveF32§base_frequency_y: PositiveF32§num_octaves: u32§seed: i32§stitch_tiles: bool§kind: TurbulenceKindImplementations§
Source§impl Turbulence
 
impl Turbulence
Sourcepub fn base_frequency_x(&self) -> PositiveF32
 
pub fn base_frequency_x(&self) -> PositiveF32
Identifies the base frequency for the noise function.
baseFrequency in the SVG.
Sourcepub fn base_frequency_y(&self) -> PositiveF32
 
pub fn base_frequency_y(&self) -> PositiveF32
Identifies the base frequency for the noise function.
baseFrequency in the SVG.
Sourcepub fn num_octaves(&self) -> u32
 
pub fn num_octaves(&self) -> u32
Identifies the number of octaves for the noise function.
numOctaves in the SVG.
Sourcepub fn seed(&self) -> i32
 
pub fn seed(&self) -> i32
The starting number for the pseudo random number generator.
seed in the SVG.
Sourcepub fn stitch_tiles(&self) -> bool
 
pub fn stitch_tiles(&self) -> bool
Smooth transitions at the border of tiles.
stitchTiles in the SVG.
Sourcepub fn kind(&self) -> TurbulenceKind
 
pub fn kind(&self) -> TurbulenceKind
Indicates whether the filter primitive should perform a noise or turbulence function.
type in the SVG.
Trait Implementations§
Source§impl Clone for Turbulence
 
impl Clone for Turbulence
Source§fn clone(&self) -> Turbulence
 
fn clone(&self) -> Turbulence
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 Turbulence
 
impl Debug for Turbulence
impl Copy for Turbulence
Auto Trait Implementations§
impl Freeze for Turbulence
impl RefUnwindSafe for Turbulence
impl Send for Turbulence
impl Sync for Turbulence
impl Unpin for Turbulence
impl UnwindSafe for Turbulence
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