aboutsummaryrefslogtreecommitdiff
path: root/src/fractals/tricorn.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/tricorn.c
parent268762689211f036faa55583c59b4a23cd1223ab (diff)
downloadfractol-81a6eab0458f869be6fead27782ee3e5c26b6742.tar.gz
fractol-81a6eab0458f869be6fead27782ee3e5c26b6742.tar.bz2
fractol-81a6eab0458f869be6fead27782ee3e5c26b6742.zip
amend me
Diffstat (limited to 'src/fractals/tricorn.c')
-rw-r--r--src/fractals/tricorn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fractals/tricorn.c b/src/fractals/tricorn.c
index b40260d..052cc2f 100644
--- a/src/fractals/tricorn.c
+++ b/src/fractals/tricorn.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/24 16:00:46 by cacharle #+# #+# */
-/* Updated: 2020/02/24 16:12:16 by cacharle ### ########.fr */
+/* Updated: 2020/02/25 07:34:01 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -28,7 +28,7 @@ int tricorn(t_state *state, t_complex z)
zr = z.r;
zi = z.i;
n = -1;
- while (++n < TRICORN_MAX_ITERATION)
+ while (++n < state->iterations)
{
zi_square = zi * zi;
zr_square = zr * zr;