This is a simple command-line application that renders the Mandelbrot fractal directly in your terminal. The program allows you to customize various parameters to explore different regions of the fractal and adjust the output size.
- Customizable Coordinates: Adjust the region of the complex plane to be rendered.
- Terminal-Friendly Output: The fractal is rendered using ASCII characters, making it easy to view in any terminal.
- Iterations Control: Set the maximum number of iterations to fine-tune the detail of the fractal.
- Easy to Use: Simple command-line interface with intuitive options.
mandelbrot [OPTIONS]
--x-min <X_MIN>
: Minimal x coordinate (default: -2.5)--x-max <X_MAX>
: Maximal x coordinate (default: 1.5)--y-min <Y_MIN>
: Minimal y coordinate (default: -1.5)--y-max <Y_MAX>
: Maximal y coordinate (default: 1.5)--width <WIDTH>
: Image width in characters (default: 100)--height <HEIGHT>
: Image height in characters (default: 24)--n-iters <N_ITERS>
: Maximum number of iterations for each point (default: 10000)-h, --help
: Print help information-V, --version
: Print version information
To render the Mandelbrot fractal with a custom region and higher resolution:
mandelbrot --x-min -1.5 --x-max 0.5 --y-min -1.0 --y-max 1.0 --width 150 --height 40 --n-iters 5000
............................................................................................••••••••***••••*****••...................................
............................................................................................••••••••••******•••••••••.................................
.........................................................................................••••••••••*+***+*****••••••••................................
....................................................................................••••••***+++***+**+%%%+********•••••..............................
.............................................................................••••••••••••••••**+%%%%%%%%%%%%%+%+***••••••••...........................
.....................................................................•••••••••••••••••••••••***%%%%%%%%%%%%%%%%+*+*•••••••••••••••....................
................................................................•••••••••*•••••••••••••••••*****+%%%%%%%%%%%%%+****••••••••••••••••••••••••*•••.......
...........................................................••••••••****+*****••••***++***+x*++*#+$#x$+x%x+$x%++*+$x*+++****++*••••••••••••***••••.....
........................................................•••••••••••****+%%%%%*+**+x*$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+**+******++*+*******••....
....................................................••••••••••••••••***+%%%%%%+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+*$%%%%%%x+**•••••....
................................................•••••••••••••••*********+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%$***•••••••...
................•••••••••••••............•••••••••••••••••••*++++x%x*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%++***•••••••••.
............••••••**••••••••••••••••••••••••••••••••••••••••*****++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#x***••••*•••
...........•••••****••••••••••••••***••••••••••••••••••••**+x+%+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+%%%+****••
..........••••••••••****+*+***********x+******•••••••••••**+*x%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+***••••••
........•••••••••••••***++%%%$*+*%x$%%%%x%+%%*************+x%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+****••••
......••••••••••*********+$%%%%%%%%%%%%%%%%%%%%%%%++******x%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*+*++•••.
••••••**••••••••****+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+**$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*+••••..
•••••••***+*********+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%++••••••..
•*•••******+%%%%%%*+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*+••••••••...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*****••••••••••...
•*•••******+%%%%%%*+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*+••••••••...
•••••••***+*********+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%++••••••..
••••••**••••••••****+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+**$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*+••••..
......••••••••••*********+$%%%%%%%%%%%%%%%%%%%%%%%++******x%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*+*++•••.
........•••••••••••••***++%%%$*+*%x$%%%%x%+%%*************+x%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+****••••
..........••••••••••****+*+***********x+******•••••••••••**+*x%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+***••••••
...........•••••****••••••••••••••***••••••••••••••••••••**+x+%+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+%%%+****••
............••••••**••••••••••••••••••••••••••••••••••••••••*****++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#x***••••*•••
................•••••••••••••............•••••••••••••••••••*++++x%x*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%++***•••••••••.
................................................•••••••••••••••*********+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%$***•••••••...
....................................................••••••••••••••••***+%%%%%%+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+*$%%%%%%x+**•••••....
........................................................•••••••••••****+%%%%%*+**+x*$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%+**+******++*+*******••....
...........................................................••••••••****+*****••••***++***+x*++*#+$#x$+x%x+$x%++*+$x*+++****++*••••••••••••***••••.....
................................................................•••••••••*•••••••••••••••••*****+%%%%%%%%%%%%%+****••••••••••••••••••••••••*•••.......
.....................................................................•••••••••••••••••••••••***%%%%%%%%%%%%%%%%+*+*•••••••••••••••....................
.............................................................................••••••••••••••••**+%%%%%%%%%%%%%+%+***••••••••...........................
....................................................................................••••••***+++***+**+%%%+********•••••..............................
.........................................................................................••••••••••*+***+*****••••••••................................
............................................................................................••••••••••******•••••••••.................................
-
Clone the repository:
git clone https://github.com/1ort/mandelbrot_cli.git
-
Navigate to the project directory:
cd mandelbrot
-
Build and run the project using Cargo:
cargo run -- [OPTIONS]
This project was created as an exercise from the book "Rust in Action" by Tim McNamara (timClicks). It serves as a practical example of how to implement a simple fractal renderer in Rust.
This README.md was generated by an AI assistant.
Enjoy exploring the Mandelbrot fractal in your terminal! 🌌