pub struct Mondrian {
pub size: f32,
pub width: f32,
pub colors: Vec<String>,
pub color_weights: Vec<u32>,
pub grid_round: f32,
pub line_width: f32,
pub rng: StdRng,
}Fields§
§size: f32Canvas size
width: f32Graphic width
colors: Vec<String>Available colors
color_weights: Vec<u32>Color Weights
grid_round: f32Grid size
line_width: f32Line width
rng: StdRngRandom seed
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mondrian
impl RefUnwindSafe for Mondrian
impl Send for Mondrian
impl Sync for Mondrian
impl Unpin for Mondrian
impl UnwindSafe for Mondrian
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