/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_rgb_to_hex.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:58 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:28:58 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include uint32_t ft_rgb_to_hex(t_rgb rgb) { uint32_t res; res = 0; res += ((rgb.r << 16) + (rgb.g << 8) + rgb.b); return (res); }