Skip to content

ilies1511/fract-ol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fract-ol

Interactive Fractal Explorer (Mandelbrot & Julia Sets)

fract-ol is a lightweight C program that renders and explores the Mandelbrot and Julia fractal sets in real time. It uses the MLX42 graphics library to provide smooth zooming, panning, and parameter tweaking.


Fractal Collage


Table of Contents


Features

  • Mandelbrot set rendering
  • Julia set rendering with user‐defined complex parameter
  • Infinite zoom
  • Color mapping based on iteration depth
  • Responsive pan & reset
  • Graceful exit via ESC or window close

Installation

  1. Clone the repository

    git clone https://github.com/ilies1511/fract-ol.git
    cd fract-ol
  2. Install dependencies

  3. Build

    make

Usage

./fractol [mandelbrot] | [julia <real> <imag>]
  • Mandelbrot

    ./fractol mandelbrot

    Renders the classic Mandelbrot set.

  • Julia

    ./fractol julia <real-part> <imag-part>

    Valid range:

    -2.0 ≤ real-part ≤ 2.0
    -2.0 ≤ imag-part ≤ 2.0
    

Invalid or missing arguments will print usage instructions.


Controls

Action Key / Mouse
Zoom In / Out Mouse wheel
Pan View Arrow keys
Exit ESC or window close

Screenshots

Mandelbrot overview Julia set detail

For a single image gallery, supply individual files in ./images/.


About

42 fract-ol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors