Parse ansi strings and convert them to html and svg formats
|
| |
ansi2
use ;
let canvas = new;
for row in canvas.pixels.iter
custom font
|
16colo
https://16colo.rs/pack/laz17/ll-darlaakacrystal.ans
|
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
use ansi2::{Canvas};
let canvas = Canvas::new(s);
for row in canvas.pixels.iter() {
for pixel in row.iter() {
// draw pixel
}
}
neofetch | ansi2 --format=svg --theme=vscode --font=./font.ttf > ./neofetch.svg
https://16colo.rs/pack/laz17/ll-darlaakacrystal.ans
cat ./ll-darlaakacrystal.ans | ansi2 --format=svg --width=80 > ll-darlaakacrystal.svg