[−][src]Struct procedural_generation::NoiseOptions
Different options for defining how noise should behave.
Fields
frequency: f64
Higher frequency adds a zooming effect to the noise. Default is 1.0.
redistribution: f64
Higher redistribution exaggerates higher peaks and lower lows. Default is 1.0.
octaves: usize
More octaves increases variety. Default is 1.
Implementations
impl NoiseOptions
[src]
pub fn new() -> Self
[src]
Creates NoiseOptions
. See Making maps with noise functions
for more detail on each option. Usage of NoiseOptions
looks like this:
fn main() { let noise_options = NoiseOptions { frequency: 4., ..NoiseOptions::default() }; Generator::new() .with_size(40, 10) .with_options(noise_options) .spawn_perlin(|value| { if value > 0.5 { 1 } else { 0 } }) .show(); }
Trait Implementations
impl Debug for NoiseOptions
[src]
impl Default for NoiseOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for NoiseOptions
impl Send for NoiseOptions
impl Sync for NoiseOptions
impl Unpin for NoiseOptions
impl UnwindSafe for NoiseOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<D> OwoColorize for D
[src]
fn fg<C>(&'a self) -> FgColorDisplay<'a, C, Self> where
C: Color,
[src]
C: Color,
fn bg<C>(&'a self) -> BgColorDisplay<'a, C, Self> where
C: Color,
[src]
C: Color,
fn black(&'a self) -> FgColorDisplay<'a, Black, Self>
[src]
fn on_black(&'a self) -> BgColorDisplay<'a, Black, Self>
[src]
fn red(&'a self) -> FgColorDisplay<'a, Red, Self>
[src]
fn on_red(&'a self) -> BgColorDisplay<'a, Red, Self>
[src]
fn green(&'a self) -> FgColorDisplay<'a, Green, Self>
[src]
fn on_green(&'a self) -> BgColorDisplay<'a, Green, Self>
[src]
fn yellow(&'a self) -> FgColorDisplay<'a, Yellow, Self>
[src]
fn on_yellow(&'a self) -> BgColorDisplay<'a, Yellow, Self>
[src]
fn blue(&'a self) -> FgColorDisplay<'a, Blue, Self>
[src]
fn on_blue(&'a self) -> BgColorDisplay<'a, Blue, Self>
[src]
fn magenta(&'a self) -> FgColorDisplay<'a, Magenta, Self>
[src]
fn on_magenta(&'a self) -> BgColorDisplay<'a, Magenta, Self>
[src]
fn purple(&'a self) -> FgColorDisplay<'a, Magenta, Self>
[src]
fn on_purple(&'a self) -> BgColorDisplay<'a, Magenta, Self>
[src]
fn cyan(&'a self) -> FgColorDisplay<'a, Cyan, Self>
[src]
fn on_cyan(&'a self) -> BgColorDisplay<'a, Cyan, Self>
[src]
fn white(&'a self) -> FgColorDisplay<'a, White, Self>
[src]
fn on_white(&'a self) -> BgColorDisplay<'a, White, Self>
[src]
fn bright_black(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
[src]
fn on_bright_black(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
[src]
fn bright_red(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
[src]
fn on_bright_red(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
[src]
fn bright_green(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
[src]
fn on_bright_green(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
[src]
fn bright_yellow(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
[src]
fn on_bright_yellow(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
[src]
fn bright_blue(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
[src]
fn on_bright_blue(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
[src]
fn bright_magenta(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
[src]
fn on_bright_magenta(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
[src]
fn bright_purple(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
[src]
fn on_bright_purple(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
[src]
fn bright_cyan(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
[src]
fn on_bright_cyan(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
[src]
fn bright_white(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
[src]
fn on_bright_white(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
[src]
fn bold(&'a self) -> BoldDisplay<'a, Self>
[src]
fn dimmed(&'a self) -> DimDisplay<'a, Self>
[src]
fn italic(&'a self) -> ItalicDisplay<'a, Self>
[src]
fn underline(&'a self) -> UnderlineDisplay<'a, Self>
[src]
fn blink(&'a self) -> BlinkDisplay<'a, Self>
[src]
fn blink_fast(&'a self) -> BlinkFastDisplay<'a, Self>
[src]
fn reversed(&'a self) -> ReversedDisplay<'a, Self>
[src]
fn hidden(&'a self) -> HiddenDisplay<'a, Self>
[src]
fn strikethrough(&'a self) -> StrikeThroughDisplay<'a, Self>
[src]
fn color<Color>(&'a self, color: Color) -> FgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
[src]
Color: DynColor,
fn on_color<Color>(&'a self, color: Color) -> BgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
[src]
Color: DynColor,
fn truecolor(&'a self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'a, Rgb, Self>
[src]
fn on_truecolor(
&'a self,
r: u8,
g: u8,
b: u8
) -> BgDynColorDisplay<'a, Rgb, Self>
[src]
&'a self,
r: u8,
g: u8,
b: u8
) -> BgDynColorDisplay<'a, Rgb, Self>
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,