Skip to content

This C project is about two-dimensional graphical modeling of mathematical fractal shapes. The final program should be capable of producing infinitely recurring fractal shapes with the parameter applied. This C program is tagged with my school's "42" user account "aviholai".

License

Notifications You must be signed in to change notification settings

anselnettles/Fract-ol

Repository files navigation

Fract'ol | fractals | "broken", "fractured"

Summary: This project is meant to create graphically beautiful fractals.

This C project is about two-dimensional graphical modeling of mathematical fractal shapes. The final program should be capable of producing infinitely recurring fractal shapes with the parameter applied. This C program is tagged with my school's "42" user account "aviholai".

MiniLibraryX (MLX) is a 42School graphical library used in the graphics branch projects, such as this one. For more information regarding MLX and understanding it, I recommend checking out this guide by @harm-smits: 42 Docs: MiniLibX

How to use.

  1. Compile the binary in the repository with command make
  2. Apply argument as parameter when launching the program, representing a number (1 to 3) to a different fractal pattern. ./fractol <number>
  3. If your command is viable the graphical window should launch, otherwise you should get an error message in the standard output.

    Controls for Mac and Linux:
    • Moving the mouse pans the fractal image. This also further progresses the symmetry of the Julia fractal.
    • Clicking the mouse switches between the different fractal patterns.
    • Scrolling the mouse wheel zooms in and out in the fractal, applying further iterations.
    • Press ESC to quit the program.
    As the program was initially planned for school computer use, the keyboard controls may not be hooked properly to other than MacOS.

usage_clip

To do. | Future capacities.

• Compatibility with different OS (with MiniLibraryX and keyboard controls).
• Further optimisation, to make the heavy mathematical iterations refresh more smoothly.
• Possibility to lock the aspect and position of the fractal, while, for example, zooming into it.
• Motion hooked to keyboard arrow keys (this is a bonus feature in the school subject file).
• Etc.

About

This C project is about two-dimensional graphical modeling of mathematical fractal shapes. The final program should be capable of producing infinitely recurring fractal shapes with the parameter applied. This C program is tagged with my school's "42" user account "aviholai".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published