Whoops, consts need explicit types.

This commit is contained in:
Jacob Signorovitch 2024-12-16 00:11:21 -05:00
parent 55ddf3312d
commit 720995f5b5

View File

@ -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;