A Mandelbrot set viewer written in rust
Clone or download
agherzan mandelbrot.rs: Cleanup a little by using unwrap_or_else
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Latest commit 866b0c9 Jan 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
src
.gitignore Initial implementation Jan 21, 2019
Cargo.lock
Cargo.toml
README.md

README.md

Mandelbrot set viewer

This tool plots the Mandelbrot set for a defined area. It outputs the result as a png file.

example

For more info and runtime arguments run:

$ mandelbrot-viewer -h

mandelbrot-viewer 0.0.1
Andrei Gherzan <andrei@gherzan.ro>


USAGE:
    mandelbrot-viewer [OPTIONS] --first-point <first_point> --last-point <last_point> --output <FILE> --resolution <resolution>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -f, --first-point <first_point>    Top left point on the cartesian graph [default: -2,1]
    -l, --last-point <last_point>      Bootom right point on the cartesian graph [default: 1,-1]
    -o, --output <FILE>                Filename for the output png [default: mandelbrot.png]
    -r, --resolution <resolution>      Image resolution of the output [default: 900x600]
    -t, --threads <threads>            Number of threads used to compute the set [default: 4]

This implementation is inspired from Programming Rust: Fast, Safe Systems Development 1st Edition by Jim Blandy and Jason Orendorff.