From 720995f5b501d89f3d37e04009a4af60731a731b Mon Sep 17 00:00:00 2001 From: Jacob Date: Mon, 16 Dec 2024 00:11:21 -0500 Subject: [PATCH] Whoops, consts need explicit types. --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 41bb397..82c8bdb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ use image::{ImageBuffer, Rgb}; use rayon::prelude::*; // Number of frames to generate. -const FRAMES = 20; +const FRAMES: u32 = 20; // Frame size. const IMGW: u32 = 1024; @@ -14,8 +14,8 @@ const MAXITER_F64: f64 = MAXITER as f64; const ESCRAD: f64 = 2.4; // Target coordinates (what to "zoom in on" with each new frame.) -const TARGX = -0.4638686756; -const TARGX = 0.0723647; +const TARGX: f64 = -0.4638686756; +const TARGX: f64 = 0.0723647; fn main() { let w = IMGW as f64;