Fractals is a console-based C++ program for generating various fractals:
- Mandelbrot Set
- Julia Set
- Sierpinsky Carpet
- Sierpinsky Triangle
The program is colorful, using ANSI escape codes to display the fractals and messages in the console.
- Interactive console interface with command support
- Built-in help and error messages for invalid commands
- Adjustable fractal parameters:
- Scale
- Iteration count
- For Julia Set: real and imaginary parts of the complex parameter
- No external libraries required (self-contained)
- Cross-platform (requires a console with ANSI escape code support)
- Clone the repository:
git clone https://github.com/Vladyslaa/Fractals.git
cd Fractals- Compile with GCC (or any C++ compiler):
g++ -std=c++23 src/Fractals.cpp src/Core.cpp -O3 -o Fractals.exe-O3 enables optimizations for faster execution. Remove for debugging. C++23 standart is required
- Run the program:
./Fractals.exe- Inside the program, type commands to generate fractals. Use the commands command for a list of available commands.
> mandelbrot 1000 750
> maxiter 500
> julia 1000 500 -0.7 0.27
maxiter sets the maximum iteration depth -0.7 - real part 0.27 - imaginary part
> serpinsky triangle 1000 1000


