Started from buttom go to the sky
This commit is contained in:
parent
96215449bd
commit
f811e55dea
4781 changed files with 10121 additions and 1743 deletions
24
stdme/src/blx/colors.c
Normal file
24
stdme/src/blx/colors.c
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* colors.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/12/14 16:01:18 by maiboyer #+# #+# */
|
||||
/* Updated: 2023/12/27 16:26:30 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "me/blx/colors.h"
|
||||
#include "me/types.h"
|
||||
|
||||
t_color new_color_with_alpha(t_u8 r, t_u8 g, t_u8 b, t_u8 alpha)
|
||||
{
|
||||
return ((t_color){.r = r, .g = g, .b = b, .a = alpha});
|
||||
}
|
||||
|
||||
t_color new_color(t_u8 r, t_u8 g, t_u8 b)
|
||||
{
|
||||
return (new_color_with_alpha(r, g, b, 0x00));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue