add optional verbose mode
CI / Rust project (push) Successful in 1m9s

This commit is contained in:
2023-11-27 14:37:32 +01:00
parent 497defbdb4
commit 7d0793fa5e
2 changed files with 9 additions and 3 deletions
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 11 MiB

+9 -3
View File
@@ -11,7 +11,11 @@ struct Args {
/// The multiplicator
#[arg(short, default_value_t = 96)]
modulo: u32
modulo: u32,
/// Set verbose mode
#[arg(short, long, default_value_t = false)]
verbose: bool
}
fn main() {
@@ -29,8 +33,10 @@ fn main() {
}
}
img.save("modraw.png").expect("Failed to save image");
println!("{colors:?}");
println!("{:?}", colors.len());
if args.verbose {
println!("{colors:?}");
println!("{:?}", colors.len());
}
}
fn generate_random(start: u8, end: u8) -> u8 {