summaryrefslogtreecommitdiff
path: root/nonstd.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 23:55:57 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 23:55:57 +0100
commit91ab3ae0147712b549e4ec086818f847fd23e12f (patch)
tree7b2dae9f288e1f7c6b3dc7c0101b4651fd0cf85d /nonstd.h
parent3c62d3d54244731b641952bd7e93edbab16d5d79 (diff)
downloadnonstd-91ab3ae0147712b549e4ec086818f847fd23e12f.tar.gz
Add PPM simple image implementation
Diffstat (limited to 'nonstd.h')
-rw-r--r--nonstd.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/nonstd.h b/nonstd.h
index efe10af..f4f6292 100644
--- a/nonstd.h
+++ b/nonstd.h
@@ -263,14 +263,14 @@ typedef struct {
#define COLOR_RGB(r, g, b) ((Color){(u8)(r), (u8)(g), (u8)(b)})
#define COLOR_HEX(hex) ((Color){(u8)(((hex) >> 16) & 0xFF), (u8)(((hex) >> 8) & 0xFF), (u8)((hex) & 0xFF)})
-#define CLR_BLACK COLOR_RGB(0, 0, 0)
-#define CLR_WHITE COLOR_RGB(255, 255, 255)
-#define CLR_RED COLOR_RGB(255, 0, 0)
-#define CLR_GREEN COLOR_RGB(0, 255, 0)
-#define CLR_BLUE COLOR_RGB(0, 0, 255)
-#define CLR_YELLOW COLOR_RGB(255, 255, 0)
-#define CLR_MAGENTA COLOR_RGB(255, 0, 255)
-#define CLR_CYAN COLOR_RGB(0, 255, 255)
+#define COLOR_BLACK COLOR_RGB(0, 0, 0)
+#define COLOR_WHITE COLOR_RGB(255, 255, 255)
+#define COLOR_RED COLOR_RGB(255, 0, 0)
+#define COLOR_GREEN COLOR_RGB(0, 255, 0)
+#define COLOR_BLUE COLOR_RGB(0, 0, 255)
+#define COLOR_YELLOW COLOR_RGB(255, 255, 0)
+#define COLOR_MAGENTA COLOR_RGB(255, 0, 255)
+#define COLOR_CYAN COLOR_RGB(0, 255, 255)
NONSTD_DEF Canvas ppm_init(u32 width, u32 height);
NONSTD_DEF void ppm_free(Canvas *img);