[][src]Struct sprite_gen::Options

pub struct Options {
    pub mirror_x: bool,
    pub mirror_y: bool,
    pub colored: bool,
    pub edge_brightness: f32,
    pub color_variations: f32,
    pub brightness_noise: f32,
    pub saturation: f32,
    pub seed: u64,
}

The options for the gen_sprite function.

Fields

mirror_x: bool

true if the result buffer should be mirrored along the X axis.

mirror_y: bool

true if the result buffer should be mirrored along the Y axis.

colored: bool

true if the output should be colored. false if the output should be 1-bit. The Fields after this field only apply if colored is true.

edge_brightness: f32

A value from 0.0 - 1.0.

color_variations: f32

A value from 0.0 - 1.0.

brightness_noise: f32

A value from 0.0 - 1.0.

saturation: f32

A value from 0.0 - 1.0.

seed: u64

The seed for the random generator.

Trait Implementations

impl Clone for Options[src]

impl Copy for Options[src]

impl Debug for Options[src]

impl Default for Options[src]

fn default() -> Self[src]

  • mirror_x: false
  • mirror_y: false
  • colored: true
  • edge_brightness: 0.3
  • color_variations: 0.2
  • brightness_noise: 0.3
  • saturation: 0.5
  • seed: 0

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.