add hexcolor output of the first function
All checks were successful
CI / Rust project (push) Successful in 1m8s
All checks were successful
CI / Rust project (push) Successful in 1m8s
This commit is contained in:
parent
4eb71c18fb
commit
06ba0efc10
BIN
grid_image.png
BIN
grid_image.png
Binary file not shown.
|
Before Width: | Height: | Size: 779 KiB After Width: | Height: | Size: 776 KiB |
@ -86,6 +86,8 @@ fn main() {
|
|||||||
colors.push(color);
|
colors.push(color);
|
||||||
|
|
||||||
img.save("grid_image.png").expect("Failed to save image");
|
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 {
|
fn get_pitch_quotient() -> u32 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user