-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_color.c
25 lines (22 loc) · 1.07 KB
/
ft_color.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_color.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mbourdel <mbourdel@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/01/07 15:48:14 by mbourdel #+# #+# */
/* Updated: 2015/01/07 15:57:31 by mbourdel ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
unsigned int ft_color(t_pt2d point)
{
unsigned int color;
color = 0x00FF00;
if (point.memz < 0)
color = 0x0000FF;
if (point.memz > 0)
color = 0xFFFFFF;
return (color);
}