aboutsummaryrefslogtreecommitdiff
path: root/src/fractals/julia.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-25 09:47:39 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-25 09:47:39 +0100
commit81a6eab0458f869be6fead27782ee3e5c26b6742 (patch)
tree00945caca1b2ad7bcb675842c284133b0692567e /src/fractals/julia.c
parent268762689211f036faa55583c59b4a23cd1223ab (diff)
downloadfractol-81a6eab0458f869be6fead27782ee3e5c26b6742.tar.gz
fractol-81a6eab0458f869be6fead27782ee3e5c26b6742.tar.bz2
fractol-81a6eab0458f869be6fead27782ee3e5c26b6742.zip
amend me
Diffstat (limited to 'src/fractals/julia.c')
-rw-r--r--src/fractals/julia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fractals/julia.c b/src/fractals/julia.c
index 136cf13..8474bb8 100644
--- a/src/fractals/julia.c
+++ b/src/fractals/julia.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/24 15:17:38 by cacharle #+# #+# */
-/* Updated: 2020/02/24 16:06:57 by cacharle ### ########.fr */
+/* Updated: 2020/02/25 07:33:43 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -26,7 +26,7 @@ int julia(t_state *state, t_complex z)
zr = z.r;
zi = z.i;
n = -1;
- while (++n < JULIA_MAX_ITERATION)
+ while (++n < state->iterations)
{
zi_square = zi * zi;
zr_square = zr * zr;