examples/termbox2-image-demo/readme.md
Terminal-based renderer using termbox2
This demo shows a color palette and a few different components. It allows changing configuration settings for colors, border size rounding mode, characters used for borders, and transparency.
Keybinds:
c/C - Cycle through color modes
b/B - Cycle through border modes
h/H - Cycle through border characters
i/I - Cycle through image modes
t/T - Toggle transparency
d/D - Toggle debug mode
q/Q - Quit
Configuration can be also be overriden by environment variables:
CLAY_TB_COLOR_MODE
NORMAL256216GRAYSCALETRUECOLORNOCOLORCLAY_TB_BORDER_CHARS
DEFAULTASCIIUNICODENONECLAY_TB_IMAGE_MODE
DEFAULTPLACEHOLDERBGASCII_FGASCIIUNICODEASCII_FG_FASTASCII_FASTUNICODE_FASTCLAY_TB_TRANSPARENCY
10CLAY_TB_CELL_PIXELS
widthxheightBuild the binary with cmake
mkdir build
cd build
cmake ..
make
Then run the executable:
./clay_examples_termbox2_demo
Resources used:
512px-Shark_antwerp_zoo.jpeg
512px-Balmoral_Castle_30_July_2011.jpg
512px-German_Shepherd_(aka_Alsatian_and_Alsatian_Wolf_Dog),_Deutscher_Schäferhund_(Folder_(IV)_22.jpeg
512px-Rosa_Cubana_2018-09-21_1610.jpeg
512px-Vorderer_Graben_10_Bamberg_20190830_001.jpeg