Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.01 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.01 KB

Square pixels

Inspired by "(Almost) square pixels in the terminal", this repo implements a method to draw images directly in the terminal with colors and... square pixels.

It relies on the famous stb single-file public domain libraries for C/C++, and in particular the stb image loader and the stb image resizer to provide basic image manipulation utilities.

Examples

original image

result in the terminal

original image

result in the terminal

These examples can be reproduced by compiling and running the unit tests.

How to build

cmake -S. -Bbuild [-DBUILD_SHARED_LIBS=ON]
cmake --build build
# Optionnaly run the tests/examples
[cmake --build build --target test]