16 lines
192 B
C
16 lines
192 B
C
#include "aliases.h"
|
|
|
|
typedef struct {
|
|
u8 r;
|
|
u8 g;
|
|
u8 b;
|
|
} Pixel;
|
|
|
|
typedef struct {
|
|
u64 width;
|
|
u64 height;
|
|
Pixel *data;
|
|
} Image;
|
|
|
|
void write_p6_ppm(const char *filepath, Image *img);
|