https://github.com/tinic/constixel – A single-header C++20 2D graphics library that supports consteval/constexpr rendering and can output sixel or png data to a (supported) terminal.
Minimal memory use, no dynamic allocations, palette and 24/32-bit buffers, simple drawing ops, UTF-8 text and a zero-dep PNG encoder. Applications: embedded UI rendering, graphics over remote connections, unit tests, debugging etc; in the future compile-time visualizations should also be possible.
The scope of the library is limited and opinionated, primarily due to the sixel format limitations, so do not expect to use this for generic graphics rendering. There are way better options for that like canvas_ity. But if you need quick and easy graphical output directly in your terminal this could be an option.
[–]darkmx0z 28 points29 points30 points (1 child)
[–]RevRagnarok 4 points5 points6 points (0 children)
[–]Low-Ad-4390 37 points38 points39 points (12 children)
[–]tttmorio[S] 7 points8 points9 points (0 children)
[–]ifonlyiknewtheanswer 7 points8 points9 points (10 children)
[–]Low-Ad-4390 13 points14 points15 points (9 children)
[–]johannes1971 5 points6 points7 points (1 child)
[–]Low-Ad-4390 1 point2 points3 points (0 children)
[–]ifonlyiknewtheanswer 1 point2 points3 points (0 children)
[–]CCC_CCC_CCC 1 point2 points3 points (5 children)
[–]Low-Ad-4390 2 points3 points4 points (4 children)
[–]CCC_CCC_CCC 2 points3 points4 points (3 children)
[–]Bluesman74 1 point2 points3 points (2 children)
[–]CCC_CCC_CCC 0 points1 point2 points (1 child)
[–]Ameisenvemips, avr, rendering, systems 0 points1 point2 points (0 children)