Generate fractal images by escape time method, currently it can generate Mandelbrot set, Julia set, Burning Ship fractal, Nova fractal.
It can run as a script or compile and run.
# run as haskell script
chmod +x Fractal.hs
./Fractal.hs ...
# compile and run
ghc --make Fractal.hs -o fractal
./fractal ...
fractal mandelbrot
may generate Mandelbrot set.
run fractal help
to see more.
- Support more cmdline args.
- Make it colorful.
- There are much more generating methods according to wikipedia, add more besides
Escape.hs
. - Study more about fractal, what is it.
This small program is written for haskell learning purpose. Feel free to contribute, any advice, issue or pr is welcom.