An open API service indexing awesome lists of open source software.

https://github.com/terror/asciidraw

Draw ascii shapes in your terminal
https://github.com/terror/asciidraw

Last synced: 11 months ago
JSON representation

Draw ascii shapes in your terminal

Awesome Lists containing this project

README

          

## 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:

```bash
$ 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
```