How is-ammar/fract-ol works
Project type and purpose
• Fract-ol is a native, desktop graphical application written in C.
• It renders fractals (Mandelbrot, Julia, Tricorn) in real time using the MiniLibX library.
• It combines an interactive event loop (mouse/keyboard), a fractal-computation engine, and a rendering layer.
File structure
• Top-level C modules:
– main.c: program entry, argument parsing, initialization
– fractol.h: shared data structures and constants
– hook.c: event registration and callback dispatch
– utils.c / exit.c: helper functions, cleanup
• bonus/ directory:
– Variants of fractal modules (julia_bonus.c, mandelbrot_bonus.c, tricorn_bonus.c, exit_bonus.c, hook_bonus.c, render_bonus.c, utils_bonus.c)
– Mirrors core modules to add extra fractal types
• Build files:
– Makefile: compile rules
– .gitignore: excludes object files, binaries
• Screenshots/ folder: static assets for README
README for additional insights
• Dependencies: MiniLibX, standard C compiler
• “How It Works” section details mapping pixels to complex plane, zoom logic, iteration loop
Detail without over-splitting
• Logical module (argument parsing, state management, event hooks, fractal math, rendering, exit handling)
• Grouping of bonus folder as a peer to the core pipeline