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
- Host: GitHub
- URL: https://github.com/terror/asciidraw
- Owner: terror
- Created: 2022-11-06T20:30:52.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-23T23:29:07.000Z (about 3 years ago)
- Last Synced: 2025-02-15T09:37:16.459Z (11 months ago)
- Language: C
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```