This commit is contained in:
parent
497defbdb4
commit
7d0793fa5e
BIN
modraw.png
BIN
modraw.png
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 11 MiB |
@ -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");
|
||||
if args.verbose {
|
||||
println!("{colors:?}");
|
||||
println!("{:?}", colors.len());
|
||||
}
|
||||
}
|
||||
|
||||
fn generate_random(start: u8, end: u8) -> u8 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user