Match more functions

This commit is contained in:
PokeCodec committed 2020-09-04 19:49:53 -04:00
1 parent 24b607b9da
commit d4158e490a
13 files changed
+144 -1323

No files matched your search

+4
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))