asciidraw is a program that lets you draw ascii shapes in your terminal.
You can compile asciidraw using the standard C compiler gcc
, and then
invoking the resulting binary to launch the interpreter:
$ gcc -o asciidraw asciidraw.c
$ ./asciidraw
Below is a sample asciidraw program:
GRID 20 20
CIRCLE 10,10,5
LINE 0,0 19,19
LINE 19,0 0,19
DISPLAY
END
That will produce the following beautiful result:
9 * *
8 * *
7 * *
6 * *
5 * *** *
4 * * * *
3 ** *
2 ** * *
1 * * * *
0 * ** *
9 * ** *
8 * * * *
7 * **
6 * * **
5 * *** *
4 * *
3 * *
2 * *
1 * *
0 * *
01234567890123456789