Skip to content

A command-line ncurses Mandelbrot Set visualizer written in C.

License

Notifications You must be signed in to change notification settings

lbalvarenga/cdelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

 .d8888b.  8888888b.           888 888                      888    
d88P  Y88b 888  'Y88b          888 888                      888    
888    888 888    888          888 888                      888    
888        888    888  .d88b.  888 88888b.  888d888 .d88b.  888888 
888        888    888 d8P  Y8b 888 888 '88b 888P'  d88''88b 888    
888    888 888    888 88888888 888 888  888 888    888  888 888    
Y88b  d88P 888  .d88P Y8b.     888 888 d88P 888    Y88..88P Y88b.  
 'Y8888P'  8888888P'   'Y8888  888 88888P'  888     'Y88P'   'Y888 

Logo created with TAAG.

A command-line ncurses Mandelbrot Set visualizer written in C.

Compilation

Make sure ncurses (libncurses5-dev or similar) is installed.

In a Linux shell, clone the repository with

$: git clone https://github.com/lukeathedev/cdelbrot.git

then

$: make run

or

$: make
$: ./mandebrot

to compile and run the program.

Tips & tricks

                                        . .            
                                      ..+..            
                                      .####.           
                               .#  #.-..##.....        
                               -##################-.   
                             .####################.    
                 ... ..     .#######################-  
                 ..+######...#######################.  
              ....#################################.   
  ###############################################.     
              ....#################################.   
                 ..+######...#######################.  
                 ... ..     .#######################-  
                             .####################.    
                               -##################-.   
                               .#  #.-..##.....        
                                      .####.           
                                      ..+..            
                                        . .            
  • Decreasing the font size yields a much sharper and nicer looking fractal (at the cost of execution time).
  • Adjusting RESOLUTION in src/mandebrot.c to a lower or higher value can help with image quality.
  • Adjusting SENSITIVITY in src/mandelbrot.c to a lower value will reduce the amount of movement between frames.
  • Mess around in the source code! Change parameters, modify functions, add features!

About

A command-line ncurses Mandelbrot Set visualizer written in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published