diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-04 20:27:37 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-04 20:27:37 +0100 |
commit | 72c24e8e0985b375c572e98446b1dd9fe49464cc (patch) | |
tree | 9c3b57358466fbd720cdf5116b92371cf6b57b2d /src/ft_get_colors.c | |
parent | new func (diff) | |
download | 42-cub3d-72c24e8e0985b375c572e98446b1dd9fe49464cc.tar.gz 42-cub3d-72c24e8e0985b375c572e98446b1dd9fe49464cc.tar.bz2 42-cub3d-72c24e8e0985b375c572e98446b1dd9fe49464cc.tar.xz 42-cub3d-72c24e8e0985b375c572e98446b1dd9fe49464cc.tar.zst 42-cub3d-72c24e8e0985b375c572e98446b1dd9fe49464cc.zip |
Ok colors
Diffstat (limited to 'src/ft_get_colors.c')
-rw-r--r-- | src/ft_get_colors.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 7d7907a..7d9d5d2 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -50,6 +50,10 @@ int clist->f_color += ft_atoi(num[1]); clist->f_color *= 1000; clist->f_color += ft_atoi(num[2]); + + clist->f_rgb.r = ft_atoi(num[0]); + clist->f_rgb.g = ft_atoi(num[1]); + clist->f_rgb.b = ft_atoi(num[2]); ft_free_words(num); return (0); } @@ -76,6 +80,10 @@ int clist->c_color += ft_atoi(num[1]); clist->c_color *= 1000; clist->c_color += ft_atoi(num[2]); + + clist->c_rgb.r = ft_atoi(num[0]); + clist->c_rgb.g = ft_atoi(num[1]); + clist->c_rgb.b = ft_atoi(num[2]); ft_free_words(num); return (0); } |