Skip to content

mhmdhussein/42-fractol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fract-ol: Interactive Fractal Renderer

Overview

The Fract-ol project is an introduction to computer graphics using the MiniLibX library. It allows you to explore and render beautiful fractals interactively, such as the Mandelbrot set and the Julia set. The project combines math, pixel manipulation, and event handling to create a responsive and visually appealing fractal viewer. 🎨🖥️✨

Features

  • Renders different fractals:

    • Mandelbrot set
    • Julia set
  • Zoom in/out with the mouse wheel for infinite detail.

  • Built using MiniLibX for lightweight graphics handling.

Program Details

  • Program Name: fractol

  • Usage:

    ./fractol mandelbrot
    ./fractol julia
    ./fractol julia <real_part> <imaginary_part>

    Example:

    ./fractol julia -0.8 0.156

Controls

  • Mouse Scroll: Zoom in/out on fractal.

Running the Program

  1. Clone the repository:

    git clone https://github.com/MohammadHusssein/42-fractol.git
    cd 42-fractol
  2. Compile the program:

    make
  3. Run with a fractal name:

    ./fractol mandelbrot
    ./fractol julia

Examples

./fractol mandelbrot

👉 Opens an interactive Mandelbrot set window. Zoom to explore infinite detail.

./fractol julia -0.70176 -0.3842

👉 Opens a Julia set with given complex parameters.

Testing

Try different inputs and fractals:

  • ./fractol mandelbrot
  • ./fractol julia 0.285 0.01
  • ./fractol julia -0.8 0.156

License

This project is licensed under the MIT License. Feel free to use, modify, and share with proper attribution. 📜🔓✨

About

Part of 42 projects. An interactive fractal explorer written in C with MiniLibX. Supports Mandelbrot, Julia, and bonus fractals with zoom, pan, and color palettes.

Topics

Resources

License

Stars

Watchers

Forks

Contributors