use mondrian::{save,Mondrian};fnmain(){letmut s = Mondrian::default();save("iter-5.svg",&s.generate(5)).unwrap();
s.new_rng();// Otherwise it will generate exactly the same graphics
s.line_width = 0.8;save("iter-10.svg",&s.generate(10)).unwrap();}
Options
pubstructMondrian{/// Canvas sizepubsize:f32,/// Graphic widthpubwidth:f32,/// Available colorspubcolors:Vec<String>,/// Color Weightspubcolor_weights:Vec<u32>,/// Grid sizepubgrid_round:f32,/// Line widthpubline_width:f32,/// Random seedpubrng:StdRng,}