diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-25 09:47:39 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-25 09:47:39 +0100 |
| commit | 81a6eab0458f869be6fead27782ee3e5c26b6742 (patch) | |
| tree | 00945caca1b2ad7bcb675842c284133b0692567e /src/fractals | |
| parent | 268762689211f036faa55583c59b4a23cd1223ab (diff) | |
| download | fractol-81a6eab0458f869be6fead27782ee3e5c26b6742.tar.gz fractol-81a6eab0458f869be6fead27782ee3e5c26b6742.tar.bz2 fractol-81a6eab0458f869be6fead27782ee3e5c26b6742.zip | |
amend me
Diffstat (limited to 'src/fractals')
| -rw-r--r-- | src/fractals/burningship.c | 4 | ||||
| -rw-r--r-- | src/fractals/julia.c | 4 | ||||
| -rw-r--r-- | src/fractals/mandelbrot.c | 4 | ||||
| -rw-r--r-- | src/fractals/tricorn.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/fractals/burningship.c b/src/fractals/burningship.c index aa27ab1..252da15 100644 --- a/src/fractals/burningship.c +++ b/src/fractals/burningship.c @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/24 16:15:49 by cacharle #+# #+# */ -/* Updated: 2020/02/24 16:19:26 by cacharle ### ########.fr */ +/* Updated: 2020/02/25 07:33:53 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -28,7 +28,7 @@ int burningship(t_state *state, t_complex z) zr = z.r; zi = z.i; n = -1; - while (++n < BURNING_SHIP_MAX_ITERATION) + while (++n < state->iterations) { zi_square = zi * zi; zr_square = zr * zr; 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; diff --git a/src/fractals/mandelbrot.c b/src/fractals/mandelbrot.c index 5283fb5..92079d1 100644 --- a/src/fractals/mandelbrot.c +++ b/src/fractals/mandelbrot.c @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/24 11:07:41 by cacharle #+# #+# */ -/* Updated: 2020/02/24 15:25:17 by cacharle ### ########.fr */ +/* Updated: 2020/02/25 07:33:35 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -27,7 +27,7 @@ int mandelbrot(t_state *state, t_complex z) zr = z.r; zi = z.i; n = -1; - while (++n < MANDEL_MAX_ITERATION) + while (++n < state->iterations) { zi_square = zi * zi; zr_square = zr * zr; 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; |
