stick with the colors

This commit is contained in:
asus
2024-01-11 15:21:55 +01:00
parent 79fd1f5212
commit c54a0a1a63
9 changed files with 120 additions and 12 deletions

View File

@@ -76,6 +76,11 @@ int **parse_map(t_fdf *fdf, int fd);
// color for altitude
# define COLOR_START 0xffffff
# define COLOR_END 0x00d700
// R,G,B colors
// ex for col = 0x236ad0
# define COLOR_R(col) ((col & 0xff0000) >> 16) // output 23
# define COLOR_G(col) ((col & 0x00ff00) >> 8) // output 6a
# define COLOR_B(col) (col & 0x0000ff) // output d0
# define ESCAPE 65307
# define UP 65362