rebased to use custom struct over String

This commit is contained in:
2023-02-08 17:24:17 +01:00
parent b00ef93c1c
commit 135274c9c5
4 changed files with 53 additions and 26 deletions

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
}