add hexcolor output of the first function
All checks were successful
CI / Rust project (push) Successful in 1m8s

This commit is contained in:
fabolous005 2023-12-07 19:21:33 +01:00
parent 4eb71c18fb
commit 06ba0efc10
2 changed files with 2 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 779 KiB

After

Width:  |  Height:  |  Size: 776 KiB

View File

@ -86,6 +86,8 @@ fn main() {
colors.push(color);
img.save("grid_image.png").expect("Failed to save image");
let hex_string = colors.first().unwrap().iter().map(|b| format!("{:02X}", b)).collect::<String>();
println!("#{hex_string}");
}
fn get_pitch_quotient() -> u32 {