Skip to content

terror/asciidraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asciidraw 🎨

asciidraw is a program that lets you draw ascii shapes in your terminal.

Launching the interpreter

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

Example

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

About

Draw ascii shapes in your terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published