Skip to content

nosark/rust-mandlebrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Mandlebrot Fractal Renderer

This program takes a set of command line arguments and with those renders an image representitive of fractals created by examining sections of the Mandlebrot set. The Mandlebrot set is the set of values of c in the complex plane for which the orbit of 0 under the iteration of the quadratic map remains bounded. [wiki]. The images are created by iterating over

Pc : z -> z^2 + c

stays within some finite radius r. Using Grayscale, it shades in each individual pixel tracking z's position on the given image plane from a complex plane conversion. The work is split up among threads using crossbeam, and in turn they split up the rows of the image to be rendered until it's completed.

Getting Started

  1. If you haven't already, install rust

  2. Clone this repository

  3. Run cargo build --release

  4. Now run ./target/release/mandlebrot.exe FILENAME.png IMAGE_DIMENSIONS UPPERLEFT LOWERRIGHT

    Example: ./target/release/mandlebrot.exe mandelbrot.png 1000x750 -1.20,0.35 -1,0.20

    NOTE: If running with powershell follow the below example and put Upperleft and LowerRight in quotes like so:

    Example: ./target/release/mandlebrot.exe mandelbrot.png 1000x750 "-1.20,0.35" "-1,0.20"

  5. Check out the rendered image in your Parent Directory!

  6. ENJOY!

References

Mandlebrot Set

Releases

No releases published

Packages

No packages published

Languages