diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-03-05 16:09:00 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-03-05 16:09:00 +0100 |
commit | 3c330fb4947973c103a7da7df59e2ee334206446 (patch) | |
tree | 04b839ff7188cedebe8788d916042db74cf99cd8 /src/ft_darken_rgb.c | |
parent | Get normed (diff) | |
download | 42-cub3d-3c330fb4947973c103a7da7df59e2ee334206446.tar.gz 42-cub3d-3c330fb4947973c103a7da7df59e2ee334206446.tar.bz2 42-cub3d-3c330fb4947973c103a7da7df59e2ee334206446.tar.xz 42-cub3d-3c330fb4947973c103a7da7df59e2ee334206446.tar.zst 42-cub3d-3c330fb4947973c103a7da7df59e2ee334206446.zip |
Tryna be dark
Diffstat (limited to '')
-rw-r--r-- | src/ft_darken_rgb.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ft_darken_rgb.c b/src/ft_darken_rgb.c new file mode 100644 index 0000000..3e61f49 --- /dev/null +++ b/src/ft_darken_rgb.c @@ -0,0 +1,23 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_darken_rgb.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/03/05 16:04:28 by rbousset #+# #+# */ +/* Updated: 2020/03/05 16:04:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <cub3d.h> +#include <stdint.h> + +uint32_t + ft_darken_rgb(t_rgb rgb) +{ + t_rgb darker; + + darker = rgb; + return (ft_rgb_to_hex(darker)); +} |