From c772f21c151e4c52f44528a16e1b2dcd132af06a Mon Sep 17 00:00:00 2001 From: zeefaad Date: Sat, 14 Feb 2026 13:01:53 +0100 Subject: [PATCH] rgba --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index ee28cd8..1d7881b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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;