A C++ ASCII mandelbrot set visualiser.
In order to use:
- Compile with -std=c++2a -Ofast
- run with arg1 = width in characters, arg2 = height in characters.
Example use:
$ git clone https://github.com/cosmobobak/cpp-mandelbrot
$ cd cpp-mandelbrot
$ g++ -Ofast -std=c++2a main.cpp -o mandelbrot
$ ./mandelbrot 100 30
| ................................::::::--:--::............ |
| .................................::::::::--:::::............. |
| .................................:::::::--+@=-:-:::::............ |
| ................................:::::::::-+@@@@@=-::::::::........... |
| ..............................::::::::::::-+@@@@@=-::::::::::.......... |
| ............................::::::--=-::-+----=@@@=------:::::-::.......... |
| ........................:::::::::::--@@+-=#@@@@@@@@@@@@@@--------::.......... |
| .....................::::::::::::::::-*@@@@@@@@@@@@@@@@@@@@@=@@=-::::.......... |
| ..................:::::::::::::::::--=+@@@@@@@@@@@@@@@@@@@@@@@@--:::::........... |
| ...............::::::::::::::::::::-=@@@@@@@@@@@@@@@@@@@@@@@@@@@+-::::............ |
| .............:::::::---:::--:::::::-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+=::............ |
| ...........::::::::::-+#-%=@==-----=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-:::.............|
| ..........::::::::::--==@@@@@@@@@=--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=:::.............|
| ........::::::::-::---@@@@@@@@@@@@*=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-:::.............|
| .:::::::::::::::--=+=@@@@@@@@@@@@@@+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*:::::.............|
| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-::::::.............|
| .:::::::::::::::--=+=@@@@@@@@@@@@@@+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*:::::.............|
| ........::::::::-::---@@@@@@@@@@@@*=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-:::.............|
| ..........::::::::::--==@@@@@@@@@=--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=:::.............|
| ...........::::::::::-+#-%=@==-----=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-:::.............|
| .............:::::::---:::--:::::::-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+=::............ |
| ...............::::::::::::::::::::-=@@@@@@@@@@@@@@@@@@@@@@@@@@@+-::::............ |
| ..................:::::::::::::::::--=+@@@@@@@@@@@@@@@@@@@@@@@@--:::::........... |
| .....................::::::::::::::::-*@@@@@@@@@@@@@@@@@@@@@=@@=-::::.......... |
| ........................:::::::::::--@@+-=#@@@@@@@@@@@@@@--------::.......... |
| ............................::::::--=-::-+----=@@@=------:::::-::.......... |
| ..............................::::::::::::-+@@@@@=-::::::::::.......... |
| ................................:::::::::-+@@@@@=-::::::::........... |
| .................................:::::::--+@=-:-:::::............ |
| .................................::::::::--:::::............. |