Match more functions

This commit is contained in:
PokeCodec
2020-09-02 14:14:29 -04:00
parent 24b607b9da
commit d4158e490a
13 changed files with 144 additions and 1323 deletions

View File

@@ -1,6 +1,10 @@
#ifndef GUARD_RGB_H
#define GUARD_RGB_H
#define R(color) ((color) & 0x1F)
#define G(color) (((color) >> 5) & 0x1F)
#define B(color) (((color) >> 10) & 0x1F)
#define RGB(r, g, b) ((r) | ((g) << 5) | ((b) << 10))
#define RGB2(r, g, b) (((b) << 10) | ((g) << 5) | (r))
#define _RGB(r, g, b) ((((b) & 0x1F) << 10) + (((g) & 0x1F) << 5) + ((r) & 0x1F))