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,
}
Expand description
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 Copy for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more