implemented braille support, including --threshold flag

This commit is contained in:
djaidjai committed 2023-02-08 22:02:49 +01:00
1 parent 3fdaa53d23
commit 2b9817080e
4 files changed
+55 -16

No files matched your search

+2 -2
View File
@@ -28,12 +28,12 @@ fn main() {
//preprocess image
let mut img = open_image(cli.image);
img = resize_image(img, cli.full, cli.width);
img = resize_image(img, cli.full, cli.braille, cli.width);
//converting to ASCII
let out: Vec<Vec<Ascii>>;
if cli.braille {
out = to_braille_ascii(img);
out = to_braille_ascii(img, cli.threshold);
} else if cli.complex {
out = to_complex_ascii(img);
} else if let Some(map) = cli.map {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.