Skip to content
nnajkoPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zaart

Render images as ASCII art in your terminal.

Demo

Source:

Google logo

Rendered:

$ ./zaart assets/google.png --width 80
     .:-=====-:.                                               .--
   -===-::::--===                                              :==.
 :===:         .                                               :==.
:===                     .....         :---:.        ..::. ... :==.    .....
===:      ::::::::::  .-===--===:   :+##*+*###=   .-========== :==.  -===--==-.
===:      -========= :==-     :==- -##*.    =##* :===.    -=== :==. ===.  .:===.
:===.           :=== ===       -==.*##:      +##.===.      === :==.:==--===-:.
 :===:         :===  -==.      === +##=     .*## -==-     .=== :==..===-.
   :====-:::--===:    -==-:.:-==-.  +##*=--+###:  -===:::-==== :==. :==-:.::==-
     .:---=---:.       .:-----:.     .-=+*++=:      :--=--:=== .--    .:----:.
                                                  :--     :==-
                                                  :===---===-
                                                    .::-::.

Build & run

zig build -Doptimize=ReleaseFast
./zig-out/bin/zaart image.png

Options

  • --width N — output width in chars (default: terminal width, or 80)
  • --width full — no downscaling; one char per pixel
  • --invert — reverse the brightness ramp (for light-background terminals)

Built with Zig and stb_image.


A learning project — written to get hands-on with Zig 0.16's core concepts (allocators, C interop, optionals, tagged unions, the build system). Not intended for serious use.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages