Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 905 Bytes

File metadata and controls

31 lines (19 loc) · 905 Bytes

vtrenderlib

vtrenderlib is a lightweight C library for drawing vector graphics directly in ANSI-compatible terminal emulators. It renders colored points, lines and filled polygons using braille characters, allowing programs to produce pseudo-graphics without leaving the terminal.

Building

The project uses CMake and builds a static library along with several demos. A typical build looks like:

mkdir build
cd build
cmake ..
cmake --build .

This will generate libvtrenderlib.a and a few example binaries under demos/.

Demos

A set of small demos showcase various features of the library. The most featureful one is the boids simulation located in demos/boids:

Boids demo

Run it after building with:

./vt-boids

Use -h for a list of runtime options such as number of boids, debug vectors, colors and trails.