[−][src]Struct nannou::noise::Turbulence
Noise function that randomly displaces the input value before returning the output value from the source function.
_ is the pseudo-random displacement of the input value. The get() method randomly displaces the coordinates of the input value before retrieving the output value from the source function. To control the turbulence, an application can modify its frequency, its power, and its roughness.
Fields
source: &'a Source
Source function that outputs a value.
frequency: f64
Frequency value for the Turbulence function.
power: f64
Controls the strength of the turbulence by affecting how much each point is moved.
roughness: usize
Affects the roughness of the turbulence. Higher values are rougher.
Methods
impl<'a, Source> Turbulence<'a, Source>
[src]
pub const DEFAULT_SEED: u32
[src]
pub const DEFAULT_FREQUENCY: f64
[src]
pub const DEFAULT_POWER: f64
[src]
pub const DEFAULT_ROUGHNESS: usize
[src]
pub fn new(source: &'a Source) -> Turbulence<'a, Source>
[src]
pub fn set_frequency(self, frequency: f64) -> Turbulence<'a, Source>
[src]
pub fn set_power(self, power: f64) -> Turbulence<'a, Source>
[src]
pub fn set_roughness(self, roughness: usize) -> Turbulence<'a, Source>
[src]
Trait Implementations
impl<'a, Source> NoiseFn<[f64; 4]> for Turbulence<'a, Source> where
Source: NoiseFn<[f64; 4]>,
[src]
Source: NoiseFn<[f64; 4]>,
impl<'a, Source> NoiseFn<[f64; 3]> for Turbulence<'a, Source> where
Source: NoiseFn<[f64; 3]>,
[src]
Source: NoiseFn<[f64; 3]>,
impl<'a, Source> NoiseFn<[f64; 2]> for Turbulence<'a, Source> where
Source: NoiseFn<[f64; 2]>,
[src]
Source: NoiseFn<[f64; 2]>,
impl<'a, Source> Debug for Turbulence<'a, Source> where
Source: 'a + Debug,
[src]
Source: 'a + Debug,
impl<'a, Source> Seedable for Turbulence<'a, Source>
[src]
impl<'a, Source> Clone for Turbulence<'a, Source> where
Source: 'a + Clone,
[src]
Source: 'a + Clone,
fn clone(&self) -> Turbulence<'a, Source>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a, Source> Send for Turbulence<'a, Source> where
Source: Sync,
Source: Sync,
impl<'a, Source> Sync for Turbulence<'a, Source> where
Source: Sync,
Source: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<T> Erased for T
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.