pub struct Turbulence { /* private fields */ }
Expand description
A turbulence generation filter primitive.
feTurbulence
element in the SVG.
Implementations§
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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)