Use as a library
cargo add banner-builder
fn main() {
let name = "hello_world";
let filename = "test.png";
let banner = banner_builder::Banner {
width: 1000,
height: 500,
text: "Hello World!".to_owned(),
size: 24,
background_color: "F0F0FF".to_owned(),
embed: vec![],
lines: vec![],
};
let path = &std::path::Path::new(&filename).to_path_buf();
let folder = PathBuf::from(".");
banner_builder::draw_image(&banner, folder, path);
}