-
Notifications
You must be signed in to change notification settings - Fork 0
/
coloring.h
33 lines (27 loc) · 1.29 KB
/
coloring.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* coloring.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tdarchiv <tdarchiv@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/23 17:32:07 by tdarchiv #+# #+# */
/* Updated: 2019/02/28 14:08:25 by tdarchiv ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FRACTOL_COLORING_H
# define FRACTOL_COLORING_H
# include <stdint.h>
# include "t_double2.h"
# include "config.h"
# define PALETTE_COLOR_COUNT 4096
typedef struct s_frame
{
uint16_t *iter;
uint32_t *pixels;
t_double2 size;
} t_frame;
void draw_color(t_config cfg, t_frame frame);
void draw_color_region(t_config cfg, t_frame frame, t_rect rect);
void set_palette(uint32_t *palette, int gradient_type);
#endif