pokeemerald/include/constants/rgb.h

20 lines
593 B
C
Raw Normal View History

2018-01-29 14:36:13 +01:00
#ifndef GUARD_RGB_H
#define GUARD_RGB_H
#define RGB(r, g, b) ((r) | ((g) << 5) | ((b) << 10))
2018-12-29 12:10:06 +01:00
#define RGB2(r, g, b) (((b) << 10) | ((g) << 5) | (r))
2018-02-04 16:11:00 +01:00
#define _RGB(r, g, b) ((((b) & 0x1F) << 10) + (((g) & 0x1F) << 5) + ((r) & 0x1F))
2018-01-29 14:36:13 +01:00
#define RGB_BLACK RGB(0, 0, 0)
#define RGB_WHITE RGB(31, 31, 31)
#define RGB_RED RGB(31, 0, 0)
#define RGB_GREEN RGB(0, 31, 0)
#define RGB_BLUE RGB(0, 0, 31)
#define RGB_PURPLE RGB(24, 0, 24)
2018-01-29 14:36:13 +01:00
#define RGB_YELLOW RGB(31, 31, 0)
#define RGB_MAGENTA RGB(31, 0, 31)
#define RGB_CYAN RGB(0, 31, 31)
2018-12-29 12:10:06 +01:00
#define RGB_WHITEALPHA (RGB_WHITE | 0x8000)
2018-01-29 14:36:13 +01:00
#endif // GUARD_RGB_H