Skip to content
/ julia Public

A simple project to generate beautiful plots of Julia and Mandelbrot sets.

License

Notifications You must be signed in to change notification settings

ept221/julia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

julia

To build the project, run:

Make all

To create a Julia set plot, run:

./julia.sh 0.0 0.0 2.0 1000 200 -0.4 0.6

This will create an output png centered at (0.0,0.0) with a radius of 2, with a resolution of 1000x1000, run at 200 max iterations per pixel, and c = -0.4 + 0.6i.

To create a Mandelbrot set plot, run:

./mandelbrot.sh 0.0 0.0 2.0 1000 200

This will create an output png centered at (0.0,0.0) with a radius of 2, with a resolution of 1000x1000, and run at 200 max iterations per pixel.

The output images are placed into the pics/ directory. The scripts julia.sh and mandelbrot.sh automatically open their output images in the default viewer with the open command. This command works for macOS, but will have to be changed for other operating systems.

You can change the color map in display.py.

To take advantage of multiple cores, you can change the number of threads to process the image on by redefining THREAD_COUNT at the top of mandelbrot.c and julia.c.

This project requires python3, numpy, and matplotlib.

mandelbrot mandelbrot mandelbrot julia

About

A simple project to generate beautiful plots of Julia and Mandelbrot sets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published