This commit is contained in:
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user