Skip to content

Draw images directly in the terminal, with colors and... square pixels.

License

Notifications You must be signed in to change notification settings

gcuendet/square_pixels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

Draw images directly in the terminal, with colors and... square pixels.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published