diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-22 23:55:57 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-22 23:55:57 +0100 |
| commit | 91ab3ae0147712b549e4ec086818f847fd23e12f (patch) | |
| tree | 7b2dae9f288e1f7c6b3dc7c0101b4651fd0cf85d /nonstd.h | |
| parent | 3c62d3d54244731b641952bd7e93edbab16d5d79 (diff) | |
| download | nonstd-91ab3ae0147712b549e4ec086818f847fd23e12f.tar.gz | |
Add PPM simple image implementation
Diffstat (limited to 'nonstd.h')
| -rw-r--r-- | nonstd.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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); |
