/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/11 18:51:23 by ljiriste #+# #+# */
-/* Updated: 2024/01/17 12:20:02 by ljiriste ### ########.fr */
+/* Updated: 2024/04/26 11:12:57 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
unsigned char g;
unsigned char b;
};
-typedef struct s_color t_color;
+typedef struct s_color t_color;
t_color lin_interp_color(t_color zero, t_color one, double norm_par);
t_color basic_palette(double normalized_par);
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/11 18:51:27 by ljiriste #+# #+# */
-/* Updated: 2024/01/19 10:56:11 by ljiriste ### ########.fr */
+/* Updated: 2024/04/26 11:16:20 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
double r;
double i;
};
-typedef struct s_complex t_complex;
+typedef struct s_complex t_complex;
t_complex to_complex(double x, double y);
t_complex complex_add(t_complex x, t_complex y);
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/19 10:56:55 by ljiriste #+# #+# */
-/* Updated: 2024/04/25 15:10:14 by ljiriste ### ########.fr */
+/* Updated: 2024/04/26 11:16:59 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
# include "fractol.h"
-//double general_julia(void *zeroth, double resolution,
-// void (*tested_f)(void *), int (*is_over_thresh)(void *));
+/*
+double general_julia(void *zeroth, double resolution,
+ void (*tested_f)(void *), int (*is_over_thresh)(void *));
+*/
double mandelbrot(t_set *settings, double x, double y);
double tricorn(t_set *settings, double x, double y);
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/11 18:51:29 by ljiriste #+# #+# */
-/* Updated: 2024/04/26 11:01:18 by ljiriste ### ########.fr */
+/* Updated: 2024/04/26 11:16:05 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
int undersample;
int undersample_max;
};
-typedef struct s_img t_img;
+typedef struct s_img t_img;
-typedef double (*t_fractal)();
+typedef double (*t_fractal)();
struct s_view
{
t_vect2 window_coord;
t_vect2 pixel_size;
};
-typedef struct s_view t_view;
+typedef struct s_view t_view;
union u_input
{
t_complex cpx;
};
-typedef union u_input t_input;
+typedef union u_input t_input;
struct s_set
{
int color_stability;
t_input input;
};
-typedef struct s_set t_set;
+typedef struct s_set t_set;
struct s_session
{
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/11 18:51:34 by ljiriste #+# #+# */
-/* Updated: 2023/11/11 18:51:38 by ljiriste ### ########.fr */
+/* Updated: 2024/04/26 11:12:40 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
double x;
double y;
};
-typedef struct s_vect2 t_vect2;
+typedef struct s_vect2 t_vect2;
#endif