This repository contains a fractal visualization project implemented using the MiniLibX library. The goal of this project is to create an interactive program that allows users to explore various types of fractals in real-time.
Fractals are intricate geometric shapes that exhibit self-similarity and repeating patterns at different scales. This project aims to provide an interactive platform for visualizing various fractals, allowing users to zoom in, zoom out, and navigate around the fractal to observe its complex details.
The program is built using the MiniLibX library, which provides a basic set of graphical functions to interact with the X Window System. This makes it possible to create graphical interfaces, handle user input, and display images directly on the screen.
- Real-time rendering of multiple types of fractals.
- Zoom in and out functionality to explore fractals in detail.
- Pan the view to navigate around the fractal.
- Color schemes to enhance visualization.
- Interactive controls for user-friendly navigation.
To build and run this project, you will need:
- A UNIX-like operating system.
gcc
or any compatible C compiler.- The MiniLibX library. You can find it here.
- X11 development libraries.
- Clone the repository:
git clone https://github.com/armanmartirosyan/fractol
- Build the project using the provided Makefile:
make
- Run the game executable:
./fractol
and fractol name (Mandelbrot, Julia, Burnunship)
- Zoom In: Scroll up or press the
+
key. - Zoom Out: Scroll down or press the
-
key. - Change Color Scheme:
- Increase Red: Press the
r
key. - Increase Green: Press the
g
key. - Increase Blue: Press the
b
key.
- Increase Red: Press the
- Move Fractol:
- Move Left: Press the left arrow key.
- Move Right: Press the right arrow key.
- Move Up: Press the up arrow key.
- Move Down: Press the down arrow key.
- Zoom to Mouse Directions:
- Scroll Up: Zoom in towards the mouse pointer.
- Scroll Down: Zoom out away from the mouse pointer.
- Exit Program: Press the
ESC
key or close the window.
This project is licensed under the MIT License.