Skip to main content

Module image_export

Module image_export 

Source
Expand description

Serialize a rendered ASCII-art cell grid to a writer: ANSI-colored rows by default, or plain text when color is off.

Functions§

write_grid
Write grid to out. When color is true, emit truecolor SGR for fg (and bg, for half-block cells); otherwise emit just the characters. One line per row, reset (\x1b[0m) before each newline when colored.