Explore and visualize Mandelbrot, Julia, and Newton fractals with a lightweight GTK application written in C.
- Install
gccandmake.
BUILD_TYPE=release make # Compile the code in release mode (default)
BUILD_TYPE=dev make # Compile the code in development mode (includes address sanitizer and debug symbols)
make run # Run the compiled main.out| Keys | Description |
|---|---|
Up, Down, Left, Right |
Move the view 10% towards this direction |
+/=, - |
Zoom in / out the view |
q |
Quit the application |
j |
Toggle between the different fractals (Mandelbrot, Julia, Newton) |
h |
Reset the view, the number of iterations, and the settings of the current fractal |
o |
Toggle showing the overlays |
i, I |
Increment / Decrement the number of iterations |
| Keys | Description |
|---|---|
w, a, s, d
|
Move |
Mouse Drag |
Move |
To get proper autocompletion for clangd, you need to generate a compile_commands.json file. This can be done using the bear tool.
bear -- make clean allTo format all the code, use clang-format.
clang-format -i ./**/*.{c,h}This project is licensed under the GPL-3.0 License


