Skip to content

Commit 426b36d

Browse files
author
Mickael Brement
committed
do nothing
1 parent a5567de commit 426b36d

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Fractal/julia.c

+2-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: mbrement <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2023/02/05 14:19:22 by mbrement #+# #+# */
9-
/* Updated: 2023/02/22 08:27:20 by mbrement ### ########lyon.fr */
9+
/* Updated: 2023/02/23 13:21:17 by mbrement ### ########lyon.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -36,10 +36,7 @@ void algo_julia(struct s_fract *v)
3636
v->x.x = (((float)x / WIN_W) * 3.0f - 2.0f) * v->zoom + v->off_x;
3737
v->x.y = (((float)y / WIN_H) * 2.5f - 1.25f) * v->zoom + v->off_y;
3838
while (++itr < 128 && module_cplx_pow2(v->x) < 4.0)
39-
{
40-
mult_cplx2(&v->x);
41-
v->x = algo_cplx(v->x, v->y);
42-
}
39+
v->x = algo_cplx(mult_cplx(v->x, v->x), v->y);
4340
my_mlx_pixel_put(v->data, x, y, ft_color(itr, v));
4441
}
4542
}

Project_core/algo_core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: mbrement <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2023/02/04 13:20:29 by mbrement #+# #+# */
9-
/* Updated: 2023/02/23 12:55:17 by mbrement ### ########lyon.fr */
9+
/* Updated: 2023/02/23 13:21:26 by mbrement ### ########lyon.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

fract_ol.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: mbrement <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2023/02/03 15:34:08 by mbrement #+# #+# */
9-
/* Updated: 2023/02/23 12:55:42 by mbrement ### ########lyon.fr */
9+
/* Updated: 2023/02/23 13:23:09 by mbrement ### ########lyon.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -53,7 +53,6 @@ typedef struct s_fract{
5353
struct s_complex x_o;
5454
struct s_complex y;
5555
struct s_data *data;
56-
struct s_data *data_tmp;
5756
} t_fract;
5857

5958
//PROJECT_CORE

0 commit comments

Comments
 (0)