6 releases
new 0.2.5 | Jun 10, 2024 |
---|---|
0.2.4 | Jun 7, 2024 |
0.2.2 | May 21, 2024 |
0.1.0 | Apr 20, 2024 |
#178 in Graphics APIs
353 downloads per month
Used in 2 crates
43KB
1.5K
SLoC
Parse ansi strings and convert them to html and svg formats
neofetch | ansi2 --format=svg --theme=vscode > neofetch.svg
npm run bench:run | ansi2 --format=svg | resvg - -c > bench.png
ansi2
use ansi2::{Canvas};
let canvas = Canvas::new(s);
for row in canvas.pixels.iter() {
for pixel in row.iter() {
// draw pixel
}
}
custom font
neofetch | ansi2 --format=svg --theme=vscode --font=./font.ttf > ./neofetch.svg
16colo
https://16colo.rs/pack/laz17/ll-darlaakacrystal.ans
cat ./ll-darlaakacrystal.ans | ansi2 --format=svg --width=80 > ll-darlaakacrystal.svg
Dependencies
~3.5MB
~63K SLoC