This commit is contained in:
2026-02-14 13:01:53 +01:00
parent b178dedb87
commit c772f21c15

View File

@ -10,6 +10,7 @@ fn generate_png(n: u32, m: u32, width: u32, height: u32) {
let mut img: RgbaImage = ImageBuffer::new(width, height);
for (x, y, pixel) in img.enumerate_pixels_mut() {
// Centrage
let xf = (x as f64 / width as f64) * 2.0 - 1.0;
let yf = (y as f64 / height as f64) * 2.0 - 1.0;