Crates.io | mkascii |
lib.rs | mkascii |
version | 0.1.0 |
source | src |
created_at | 2022-03-15 15:50:55.029938 |
updated_at | 2022-03-15 15:50:55.029938 |
description | Library for converting images into ASCII art |
homepage | https://codeberg.org/sonicrules1234/mkascii |
repository | https://codeberg.org/sonicrules1234/mkascii |
max_upload_size | |
id | 550542 |
size | 8,466 |
use mkascii::AsciiBuilder;
// You can use AsciiBuilder::from_bytes if you alread have the data in memory
let mut image_processor = AsciiBuilder::from_path("/path/to/image/file")
.with_rows_cols(10, 20) // This is optional, and if left out mkascii will detect this from your currnt terminal size
.build();
println!("{}", image_processor.to_string());