From: Lukas Jiriste Date: Fri, 26 Apr 2024 09:46:55 +0000 (+0200) Subject: Change default values and behaviour of color shift X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=e9823b4a8dab047d1566ce50db00c5b8d4467a2e;p=42%2Ffract-ol.git Change default values and behaviour of color shift --- diff --git a/src/event_handling.c b/src/event_handling.c index b51097e..cc1e114 100644 --- a/src/event_handling.c +++ b/src/event_handling.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/12/05 19:35:01 by ljiriste #+# #+# */ -/* Updated: 2024/04/26 11:24:51 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 11:42:29 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,8 +21,8 @@ #define ZOOM_OUT 0.5 #define ZOOM_IN 2 #define DETAIL_MULT 10 -#define SHIFT_MULT 1.2 -#define SHIFT_THRESH 0.0001 +#define SHIFT_MULT 1.5 +#define SHIFT_THRESH 0.000001 static void set_for_redraw(t_session *s) { diff --git a/src/main.c b/src/main.c index 75d7e31..a156bf1 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/10/27 14:29:26 by ljiriste #+# #+# */ -/* Updated: 2024/04/26 11:08:47 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 11:36:37 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,15 +22,15 @@ void set_default(t_session *s) { s->img.width = 1920; s->img.height = 1011; - s->img.undersample_max = 5; + s->img.undersample_max = 10; s->set.detail = 1000; s->view.fractal = NULL; s->view.palette = tri_color; s->view.color_shift_speed = -0.001; - s->set.color_stability = 100; + s->set.color_stability = 50; s->set.input.cpx = (t_complex){.r = -0.4, .i = 0.6}; - s->view.pixel_size.x = 0.01; - s->view.pixel_size.y = 0.01; + s->view.pixel_size.x = 0.003; + s->view.pixel_size.y = 0.003; s->view.color_shift = 0; return ; } diff --git a/src/trans_view.c b/src/trans_view.c index 7d4d97a..f6c320e 100644 --- a/src/trans_view.c +++ b/src/trans_view.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/26 10:40:31 by ljiriste #+# #+# */ -/* Updated: 2024/04/26 11:29:08 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 11:41:29 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -88,9 +88,9 @@ void change_shift_speed(double *speed, double mult, double thresh) if (-thresh < *speed && *speed < thresh) { if (mult > 0) - *speed = thresh; + *speed = 10 * thresh; else - *speed = -thresh; + *speed = -10 * thresh; return ; } if (*speed > 0 && mult >= 0)