rebased to use custom struct over String

This commit is contained in:
djaidjai committed 2023-02-08 17:24:17 +01:00
1 parent b00ef93c1c
commit 135274c9c5
4 files changed
+53 -26

No files matched your search

+9 -4
View File
@@ -1,11 +1,16 @@
use std::path::PathBuf;
use crate::model_rgb_ascii::Ascii;
pub fn print_terminal(ascii: Vec<String>, in_colour: bool) {
for line in ascii {
println!("{}", line);
//todo: take into consideration the in_colour flag
pub fn print_terminal(art: Vec<Vec<Ascii>>, in_colour: bool) {
for line in art {
for ascii in line {
print!("{}", ascii.char)
}
println!();
}
}
pub fn print_file(ascii: Vec<String>, out: PathBuf) {
pub fn print_file(ascii: Vec<Vec<Ascii>>, out: PathBuf) {
//todo: this
}
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.