/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/27 14:29:26 by ljiriste #+# #+# */
-/* Updated: 2024/04/18 11:49:18 by ljiriste ### ########.fr */
+/* Updated: 2024/04/25 09:36:26 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
static void init_view(t_session *s)
{
- s->view.fractal = mandelbrot;
- s->view.palette = tri_color;
- s->view.pixel_size.x = 0.01;
- s->view.pixel_size.y = 0.01;
- s->view.color_shift = 0.7;
- s->view.color_shift_speed = 0.01;
s->view.window_coord.x = -s->img.width / 2 * s->view.pixel_size.x;
s->view.window_coord.y = s->img.height / 2 * s->view.pixel_size.y;
return ;
void set_default(t_session *s)
{
+ s->view.fractal = mandelbrot;
+ s->view.palette = tri_color;
+ s->view.pixel_size.x = 0.01;
+ s->view.pixel_size.y = 0.01;
+ s->view.color_shift = 0.7;
+ s->view.color_shift_speed = 0.01;
s->set.man.detail = 1000;
s->set.man.color_stability = 100;
s->img.width = 1000;