Skip to content

Commit

Permalink
Update pallets3_bonus.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxenceee committed Sep 29, 2023
1 parent c777226 commit 5707402
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bonus/pallets3_bonus.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: mgama <mgama@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/20 19:14:25 by mgama #+# #+# */
/* Updated: 2023/09/29 17:18:41 by mgama ### ########.fr */
/* Updated: 2023/09/29 17:19:16 by mgama ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -36,15 +36,15 @@ void pallet_12(t_color *color_data, int idx)
t_color temp_color_data;
int n;

n = 2;
n = 5;
colors = malloc(n * sizeof(int));
if (!colors)
pallet_error(colors, color_data);
colors[0] = 0x7F1637;
colors[1] = 0x047878;
// colors[2] = 0xFFB733;
// colors[3] = 0xF57336;
// colors[4] = 0xC22121;
colors[2] = 0xFFB733;
colors[3] = 0xF57336;
colors[4] = 0xC22121;
temp_color_data.pallet = colors;
temp_color_data.pallet_length = n;
color_data[idx] = temp_color_data;
Expand Down

0 comments on commit 5707402

Please sign in to comment.