Ascii-graphics is a 2D ascii graphics engine on the terminal.
-
Clone the repository.
$ git clone https://github.com/yasteen/ascii-graphics.git
-
Install the developer ncurses library. Eg: For Ubuntu or Debian-based systems:
$ sudo apt install libncurses-dev
-
You can use this ascii-graphics library by either:
-
Making it and copying the following to your project directory:
make $ cp libasciigraphics.so asciigraphics.h [YOUR_DIRECTORY] $ cp -a asciigraphics [YOUR_DIRECTORY]
-
Or installing it directly to
/usr/lib
$ sudo make install
You can uninstall using
$ sudo make uninstall
-
-
Finally, you can reference this library by including
#include <asciigraphics.h>
in your code, and by linking to the library when you compile.$ gcc -o main main.c -lasciigraphics
Add an -L.
flag to the end if you copied the library to your own
directory.