Crates.io | mandelbrot_fractal_generator |
lib.rs | mandelbrot_fractal_generator |
version | 0.1.6 |
source | src |
created_at | 2024-11-13 07:54:32.88704 |
updated_at | 2024-11-21 01:27:30.0579 |
description | A Rust project to generate and visualize the Mandelbrot fractal. |
homepage | |
repository | |
max_upload_size | |
id | 1446121 |
size | 100,210 |
These instructions will help you set up and run the Mandelbrot fractal generator on your local machine.
Rust and Cargo: You need to have Rust and Cargo installed.
Clone the repository
git clone https://github.com/bensatlantik/mandelbrot-fractal-generator.git
cd mandelbrot-fractal-generator
Build the Project
cargo build --release
This project depends on the image crate for image creation and manipulation. Make sure it is included in your Cargo.toml:
[dependencies]
image = "0.23.14"
Run the project to generate the Mandelbrot fractal image:
cargo run --release
The program will create an image file named mandelbrot_fractal.png in the project directory.
You can customize the fractal generation by modifying the constants in the source code:
WIDTH and HEIGHT: Change the dimensions of the output image.
MAX_ITER: Adjust the maximum number of iterations to influence the fractal detail.
X_MIN, X_MAX, Y_MIN, and Y_MAX: Modify the boundaries of the complex plane being rendered.
The output is an 800x800 image of the Mandelbrot fractal, saved as mandelbrot_fractal.png. The color gradient represents the iteration count, providing a visual representation of the fractal's complexity.
This project is licensed under the MIT License
bensatlantik