From 61414cf744eb1f44e78a6b581b1f93c83bf4946b Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 22 Feb 2021 18:33:58 -0600 Subject: [PATCH] chore: improve colour smoothing --- src/mandelbrot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mandelbrot.rs b/src/mandelbrot.rs index 8c908e2..654c876 100644 --- a/src/mandelbrot.rs +++ b/src/mandelbrot.rs @@ -126,7 +126,7 @@ impl Mandelbrot { } if num_iters < max_iterations { - (num_iters as f64) - z.norm() / 2f64.ln() + (num_iters as f64 + 1.0) - z.norm().ln().ln() / 2f64.ln() } else { num_iters as f64 }