noise_functions

Trait Noise

Source
pub trait Noise {
    // Provided methods
    fn seed(self, seed: i32) -> Seeded<Self>
       where Self: Sized { ... }
    fn frequency(self, frequency: f32) -> Frequency<Self>
       where Self: Sized { ... }
    fn fbm(self, octaves: u32, gain: f32, lacunarity: f32) -> Fbm<Self>
       where Self: Sized { ... }
    fn ridged(self) -> Ridged<Self>
       where Self: Sized { ... }
    fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>
       where Self: Sized { ... }
    fn tileable(self, width: f32, height: f32) -> Tileable<Self>
       where Self: Sized { ... }
    fn mul_seed(self, value: i32) -> MulSeed<Self>
       where Self: Sized { ... }
}
Expand description

Provides modifier methods for noise types.

Provided Methods§

Source

fn seed(self, seed: i32) -> Seeded<Self>
where Self: Sized,

Source

fn frequency(self, frequency: f32) -> Frequency<Self>
where Self: Sized,

Source

fn fbm(self, octaves: u32, gain: f32, lacunarity: f32) -> Fbm<Self>
where Self: Sized,

Source

fn ridged(self) -> Ridged<Self>
where Self: Sized,

Source

fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>
where Self: Sized,

Source

fn tileable(self, width: f32, height: f32) -> Tileable<Self>
where Self: Sized,

Source

fn mul_seed(self, value: i32) -> MulSeed<Self>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl<N: Noise> Noise for &N

Implementors§

Source§

impl Noise for CellDistance

Source§

impl Noise for CellDistanceSq

Source§

impl Noise for CellValue

Source§

impl Noise for OpenSimplex2

Source§

impl Noise for OpenSimplex2s

Source§

impl Noise for Perlin

Source§

impl Noise for Simplex

Source§

impl Noise for Value

Source§

impl Noise for ValueCubic

Source§

impl<F, const WITH_SEED: bool> Noise for NoiseFn<F, WITH_SEED>

Source§

impl<Fractal> Noise for Weighted<Fractal>

Source§

impl<N> Noise for ImproveXy<N>

Source§

impl<N> Noise for ImproveXz<N>

Source§

impl<N> Noise for Fbm<N>

Source§

impl<N> Noise for Frequency<N>

Source§

impl<N> Noise for MulSeed<N>

Source§

impl<N> Noise for Ridged<N>

Source§

impl<N> Noise for Seeded<N>

Source§

impl<N> Noise for Tileable<N>

Source§

impl<N> Noise for TriangleWave<N>