aboutsummaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-25 16:51:28 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-25 16:51:28 +0100
commita5795a2b1fae5ce8f1ac1157893bc8e3b4f5071f (patch)
treee54bad7c4367a32e30398ed23eebf96e516a6427 /src/state.c
parente36720af3c9f5a95b93bc4c8c2ee03904cceb044 (diff)
downloadfractol-a5795a2b1fae5ce8f1ac1157893bc8e3b4f5071f.tar.gz
fractol-a5795a2b1fae5ce8f1ac1157893bc8e3b4f5071f.tar.bz2
fractol-a5795a2b1fae5ce8f1ac1157893bc8e3b4f5071f.zip
Added multithreading
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/state.c b/src/state.c
index 1e276f7..f079b6c 100644
--- a/src/state.c
+++ b/src/state.c
@@ -6,17 +6,12 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/24 09:58:01 by cacharle #+# #+# */
-/* Updated: 2020/02/25 15:34:51 by cacharle ### ########.fr */
+/* Updated: 2020/02/25 15:57:01 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "fractol.h"
-#define PALETTE_START 0x000022
-#define PALETTE_END 0xd62f2f
-/* #define PALETTE_START 0x000000 */
-/* #define PALETTE_END 0xffffff */
-
void state_update_palette(t_state *state)
{
int i;
@@ -37,8 +32,6 @@ void state_update_palette(t_state *state)
state->palette[i] = color_hsl_to_rgb(hsl);
}
state->palette[i].hexcode = 0x0;
- /* for (int i = 0; i < state->iterations; i++) */
- /* printf("%d %d %d\n", state->palette[i].rgb.r, state->palette[i].rgb.g, state->palette[i].rgb.b); */
}
static int st_state_dispatch_func(t_state *state, char *fractal_name)