Skip to content

Latest commit

 

History

History
92 lines (55 loc) · 2.14 KB

README.md

File metadata and controls

92 lines (55 loc) · 2.14 KB

Fractol - Fractal Visualization Program

Fractol is a program for visualizing various fractal sets, including Mandelbrot, Julia, and Burning Ship sets. It allows you to explore these fascinating mathematical structures and observe their intricate patterns and details.

Usage

To run the Fractol program, follow these steps:

  1. Clone the repository:

git clone https://github.com/gkrusta/fractol.git

  1. Compile the program:

make

  1. Run the program with the desired fractal set:

./fractol <fractal_set> [optional_arguments]

Available fractal sets:

  • 1: Mandelbrot
  • 2: Julia
  • 3: Burning Ship

For the Julia set, you can provide additional arguments for customizing the layout:

./fractol 2 <c_real> <c_imag>

  • <c_real>: Real part of the constant c for the Julia set
  • <c_imag>: Imaginary part of the constant c for the Julia set

Controls

Use the following keyboard commands to interact with the program:

  • Arrow keys: Move the fractal
  • Scroll wheel: Zoom in and out
  • I/O keys: Increase/decrease zoom at the center only
  • U/D keys: Increase/decrease iterations
  • 1/2/3 keys: Change color set
  • 4/5/6/7 keys (only for Julia): Change Julia layout
  • Space key: Reset to default state
  • Esc key: Quit the program

Examples

  • To show the Mandelbrot set:

./fractol 1

  • To show the Julia set:

./fractol 2 <c_real> <c_imag>

  • To show the Burning Ship set:

./fractol 3

Images

Mandelbrot Set Zoomed

Mandelbrot Set

Mandelbrot Set

Mandelbrot Set

Julia Set

Julia Set

Customized Julia Set

Customized Julia Set

Burning Ship Set

Burning Ship Set

Stuff and sources I used