Skip to content

DavidVorick/VisualizingComplexFunctions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisualizingComplexFunctions

You can view the Mandelbrot Set, Julia Sets, and other complex functions interactively and save the images to an arbitrarily large resolution png file (biggest I've tried was 10,0000 x 10,0000). I'll post some screenshots later.

This program uses OpenGL and libpng, so make sure you have them installed if you want it to work.

To set the size you want your images to be saved as just put them as parameters when you run.

./Mandelbrot 1920 1080

If you don't want the program to overwrite images you already saved, tack on another parameter that's higher than the number of images you saved so far (This is the starting value for a counter that increments every time an image is saved).

./Mandelbrot 1920 1080 5

All the controls are printed in the terminal you run the program from.

Right now, it crashes if the 'correct' size isn't hard coded in correctly. To get around this run it once and write down the dimensions it prints when it crashes, then go into the code and edit line 432 to be the dimensions you wrote down and then recompile and run!

Feedback and pull requests are very welcome!

To be added:

  • Draw non-iterative complex functions with multiple, cool color schemes (not just boring rainbows)
  • Do something similar in Go, Mathematica, and Haskell!

About

Make interactive graphs of complex functions and export the image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published