Skip to content

yssrexe/fract-ol

Repository files navigation

Fract-ol

A fractal viewer project that renders beautiful mathematical fractals using the MiniLibX graphics library.

Fract-ol Screenshot

Description

This project generates and displays fractals, specifically the Mandelbrot and Julia sets. Users can explore these fractals with dynamic zooming and real-time rendering.

Features

  • Mandelbrot Set: Classic fractal visualization
  • Julia Set: Customizable with real and imaginary parameters
  • Zoom Functionality: Interactive exploration of fractal patterns
  • 900x900 pixel window resolution

Requirements

  • Linux operating system
  • MiniLibX library
  • X11 development libraries
  • GCC compiler

Installation

Clone the repository and compile the project:

git clone https://github.com/yssrexe/fract-ol.git
cd fract-ol
make

Usage

Mandelbrot Set

./fractol Mandelbrot

Julia Set

./fractol Julia <real_part> <imaginary_part>

Examples:

./fractol Julia -0.7 0.27015
./fractol Julia 0.285 0.01
./fractol Julia -0.4 0.6

Controls

  • Mouse Wheel: Zoom in/out
  • ESC: Exit the program

Project Structure

  • ft_main.c - Entry point and argument handling
  • mandelbrot.c - Mandelbrot set implementation
  • julia.c - Julia set implementation
  • zoom.c - Zoom functionality
  • ft_strtod.c - String to double conversion
  • fractol.h - Header file with structure definitions
  • minilibx-linux/ - Graphics library

Author

yael-yas (42 School)

About

A fractal visualization program that renders Mandelbrot and Julia sets with interactive zoom functionality using MiniLibX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages