noise_functions

Trait Noise

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

Provides modifier methods for noise types.

Provided Methods§

Source

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

Source

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

Source

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

Source

fn ridged(self) -> Ridged<Self>

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

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<N> Noise for ImproveXy<N>

Source§

impl<N> Noise for ImproveXz<N>

Source§

impl<N> Noise for Fbm<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>