From be93d40ef63df8c0228f45396c3f54087fbe0934 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Fri, 26 Apr 2024 09:23:56 +0200 Subject: [PATCH] Add exotic palette --- src/color.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/color.c b/src/color.c index 0081000..7445fd0 100644 --- a/src/color.c +++ b/src/color.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/11 18:50:32 by ljiriste #+# #+# */ -/* Updated: 2024/01/17 12:19:22 by ljiriste ### ########.fr */ +/* Updated: 2024/04/26 09:23:27 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -74,3 +74,13 @@ t_color tri_color(double np) colors[3] = to_color(0x00FF0000); return (general_palette(np, colors, 4)); } + +t_color double_exotic(double np) +{ + t_color res; + + res.r = *((char *)&np + 2); + res.g = *((char *)&np + 5); + res.b = *((char *)&np + 7); + return (res); +} -- 2.30.2