/mandelbrot

This program written in Rust plots the mandelbrot set, concurrently.

Primary LanguageRust

Mandelbrot

This program generates the Mandelbrot set using the Escape Time algorithm and concurrently renders a PNG image of it.

To run:

  • Install rust
  • Clone the repo
  • In your terminal, create an optimized build: cargo build --release
  • It will install its dependencies and build an executable
  • Run it! ./target/release/mandelbrot mandel_01.png 4000x3000 -2.3,-1.48 0.66,1.48

Arguments:

  1. Name of the image file
  2. Dimensions of the image. Format: "{length}x{height}"
  3. Top-left corner of the area to render. Format: "{x},{y}"
  4. Bottom-right corner of the area to render. Format: "{x},{y}"

Here is an example image from running the above command:

Example image of a Mandelbrot set

Enjoy :)