cosmobobak / cpp-mandelbrot

ASCII mandelbrot set generator in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpp-mandelbrot

A C++ ASCII mandelbrot set visualiser.

In order to use:

  1. Compile with -std=c++2a -Ofast
  2. 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
|                             ................................::::::--:--::............              |
|                           .................................::::::::--:::::.............            |
|                         .................................:::::::--+@=-:-:::::............          |
|                       ................................:::::::::-+@@@@@=-::::::::...........        |
|                      ..............................::::::::::::-+@@@@@=-::::::::::..........       |
|                    ............................::::::--=-::-+----=@@@=------:::::-::..........     |
|                   ........................:::::::::::--@@+-=#@@@@@@@@@@@@@@--------::..........    |
|                  .....................::::::::::::::::-*@@@@@@@@@@@@@@@@@@@@@=@@=-::::..........   |
|                 ..................:::::::::::::::::--=+@@@@@@@@@@@@@@@@@@@@@@@@--:::::...........  |
|                 ...............::::::::::::::::::::-=@@@@@@@@@@@@@@@@@@@@@@@@@@@+-::::............ |
|                .............:::::::---:::--:::::::-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+=::............ |
|                ...........::::::::::-+#-%=@==-----=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-:::.............|
|               ..........::::::::::--==@@@@@@@@@=--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=:::.............|
|               ........::::::::-::---@@@@@@@@@@@@*=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-:::.............|
|               .:::::::::::::::--=+=@@@@@@@@@@@@@@+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*:::::.............|
|               @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-::::::.............|
|               .:::::::::::::::--=+=@@@@@@@@@@@@@@+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*:::::.............|
|               ........::::::::-::---@@@@@@@@@@@@*=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-:::.............|
|               ..........::::::::::--==@@@@@@@@@=--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=:::.............|
|                ...........::::::::::-+#-%=@==-----=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-:::.............|
|                .............:::::::---:::--:::::::-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+=::............ |
|                 ...............::::::::::::::::::::-=@@@@@@@@@@@@@@@@@@@@@@@@@@@+-::::............ |
|                 ..................:::::::::::::::::--=+@@@@@@@@@@@@@@@@@@@@@@@@--:::::...........  |
|                  .....................::::::::::::::::-*@@@@@@@@@@@@@@@@@@@@@=@@=-::::..........   |
|                   ........................:::::::::::--@@+-=#@@@@@@@@@@@@@@--------::..........    |
|                    ............................::::::--=-::-+----=@@@=------:::::-::..........     |
|                      ..............................::::::::::::-+@@@@@=-::::::::::..........       |
|                       ................................:::::::::-+@@@@@=-::::::::...........        |
|                         .................................:::::::--+@=-:-:::::............          |
|                           .................................::::::::--:::::.............            |

About

ASCII mandelbrot set generator in C++


Languages

Language:C++ 100.0%