Skip to content

Commit 5db7298

Browse files
committed
1.0.9
1 parent 03889d5 commit 5db7298

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/mcu-renderer.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ typedef uint16_t mr_color_t;
5151
(((((color_code >> 8) & 0xff) * 253 + 505) >> 10) << 5) | \
5252
(((((color_code >> 0) & 0xff) * 249 + 1014) >> 11) << 0)
5353

54+
// Basic color palette
55+
56+
#define MR_COLOR_BLACK mr_get_color(0x000000)
57+
#define MR_COLOR_RED mr_get_color(0xf7453a)
58+
#define MR_COLOR_GREEN mr_get_color(0x4aae52)
59+
#define MR_COLOR_YELLOW mr_get_color(0xffeb3a)
60+
#define MR_COLOR_BLUE mr_get_color(0x2196f7)
61+
#define MR_COLOR_PURPLE mr_get_color(0x9c28ad)
62+
#define MR_COLOR_CYAN mr_get_color(0x00bad6)
63+
#define MR_COLOR_WHITE mr_get_color(0xffffff)
64+
5465
// Geometry
5566

5667
typedef struct

0 commit comments

Comments
 (0)