Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 2.17 KB

README.md

File metadata and controls

64 lines (41 loc) · 2.17 KB

✨ FRACT'OL ✨

yes 1

This project is about creating graphically beautiful fractals!

This is a small fractal exploration program called "fract'ol". It allows you to display and interact with various types of fractals, including the Julia set and the Mandelbrot set. The program utilizes the MLX42 library for graphical rendering.

Requirements

  • MLX42 library
  • C compiler
  • Standard C libraries (open, close, read, write, malloc, free, perror, strerror, exit)
  • Math library (-lm compiler option)

Installation

  1. Clone the repository or download the source code files.
  2. Compile the program using the provided Makefile by simply running:

$ make

Usage

To embark on a fractal adventure, run the program with the following command:

$ ./fractol mandelbrot

or

$ ./fractol julia nbr nbr

  • nbr: lets you play around with additional options for the Julia set..
  • use the arrow keys to move the fractal around!
  • you can adjust the number of iterations with the + and - keys (try it, it's fun!)

gif3

  • when you choose the julia set right click hold with your mouse and move around for some extra fractal magic!

gif1

Features

  • Display the Julia set and the Mandelbrot set.
  • Zoom in and out using the mouse wheel, allowing infinite zooming within the limits of the computer.
  • Create different Julia sets by passing different parameters to the program.
  • Support for additional parameters as rendering options.

Wishlist

  • Changing colors with a simple press on a key
  • Adding different fractals
  • Zoom on mouse position
  • Gradient flow between iterations
  • stabilizing framerate with mlx
yes 2