mirror of
https://github.com/Noratrieb/mandelbrot-rust.git
synced 2026-01-16 16:25:06 +01:00
arg formatting
This commit is contained in:
parent
f4b33c7c03
commit
ac34665436
2 changed files with 71 additions and 5 deletions
|
|
@ -1,10 +1,14 @@
|
|||
use mandelbrot_set::Config;
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let config = Config::new(1, 4, 200, 100.0);
|
||||
let args = env::args();
|
||||
let config = Config::from(args);
|
||||
|
||||
let config = Config::new(1, 3, 100, 100.0);
|
||||
|
||||
match mandelbrot_set::run(config) {
|
||||
Ok(s) => println!("{}", s),
|
||||
Err(e) => println!("Error: {}", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue