This Python script allows you to generate the Mandelbrot set using the moderngl library. You can explore different aspects of the Mandelbrot set by adjusting various parameters.
Before you begin, make sure you have the following packages installed:
- moderngl
- moderngl-window
You can install these packages using pip:
pip install moderngl moderngl-window
- Clone this repository to your local machine.
git clone https://github.com/ymankh/mandelbrot_set.git
- Navigate to the repository's directory.
cd mandelbrot_set
- Run the Python script.
python mandelbrot_set.py
- Z and X: Zoom in and out of the fractal.
- P and O: Change the power of the fractal.
- L and K: Increase and decrease the accuracy (number of iterations).
- M: Change the fractal.
- A, W, S, D: Move in the four directions (left, up, down, right).
Feel free to experiment with these controls to explore the beautiful world of the Mandelbrot set.
This Mandelbrot set generator was created by Yaman. You can find more of Yaman's work on GitHub.