a-sixel 0.8.0

A small sixel + palette selection + dithering library.
Documentation
1
2
3
4
5
6
7
8
9
use a_sixel::SixelEncoder;

const IMAGE: &[u8] = include_bytes!("transparent.png");

fn main() {
    let image = image::load_from_memory(IMAGE).unwrap();
    let six = SixelEncoder::default().encode(image.to_rgba8());
    println!("{six}");
}