Crates.io | ansi2 |
lib.rs | ansi2 |
version | 0.2.5 |
source | src |
created_at | 2024-04-20 02:32:18.036862 |
updated_at | 2024-06-10 05:36:51.751479 |
description | ansi2 |
homepage | https://github.com/ahaoboy/ansi2 |
repository | https://github.com/ahaoboy/ansi2 |
max_upload_size | |
id | 1214291 |
size | 50,802 |
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