-
Notifications
You must be signed in to change notification settings - Fork 0
/
colors2.c
48 lines (42 loc) · 1.47 KB
/
colors2.c
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* colors2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vvinogra <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/12/30 20:10:03 by vvinogra #+# #+# */
/* Updated: 2017/12/30 20:35:22 by vvinogra ### ########.fr */
/* */
/* ************************************************************************** */
#include "fractol.h"
void color_5(t_frac *frac)
{
frac->rgb->r = frac->i * 24;
frac->rgb->g = frac->i * 25;
frac->rgb->b = frac->i * 4;
}
void color_6(t_frac *frac)
{
frac->rgb->r = frac->i * 12;
frac->rgb->g = 0;
frac->rgb->b = frac->i * 10;
}
void color_7(t_frac *frac)
{
frac->rgb->r = frac->i * 4;
frac->rgb->g = frac->i * 25;
frac->rgb->b = frac->i * 24;
}
void color_8(t_frac *frac)
{
frac->rgb->r = frac->i * 25;
frac->rgb->g = frac->i * 12;
frac->rgb->b = frac->i * 12;
}
void color_9(t_frac *frac)
{
frac->rgb->r = frac->i * 7;
frac->rgb->g = frac->i * 4;
frac->rgb->b = frac->i * 12;
}