Struct noise::Turbulence [] [src]

pub struct Turbulence<Source, T> {
    pub source: Source,
    pub seed: usize,
    pub frequency: T,
    pub power: T,
    pub roughness: usize,
    // some fields omitted
}

Noise Module that randomly displaces the input value before returning the output value from the source module.

Turbulence 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 module. To control the turbulence, an application can modify its frequency, its power, and its roughness.

Fields

Source Module that outputs a value.

Seed value for the Turbulence module.

Frequency value for the Turbulence module.

Controls the strength of the turbulence by affecting how much each point is moved.

Affects the roughness of the turbulence. Higher values are rougher.

Methods

impl<Source, T> Turbulence<Source, T> where
    T: Float
[src]

Trait Implementations

impl<Source, T> Seedable for Turbulence<Source, T>
[src]

impl<Source, T> NoiseModule<Point2<T>> for Turbulence<Source, T> where
    Source: NoiseModule<Point2<T>, Output = T>,
    T: Float
[src]

impl<Source, T> NoiseModule<Point3<T>> for Turbulence<Source, T> where
    Source: NoiseModule<Point3<T>, Output = T>,
    T: Float
[src]

impl<Source, T> NoiseModule<Point4<T>> for Turbulence<Source, T> where
    Source: NoiseModule<Point4<T>, Output = T>,
    T: Float
[src]