added support for palettes (untested)

This commit is contained in:
Luna 2025-07-15 16:42:16 +02:00
parent 0320618494
commit 3420c1a544
3 changed files with 72 additions and 4 deletions

View file

@ -15,4 +15,11 @@ struct metadata
char interface;
};
struct color
{
unsigned char r = 0;
unsigned char g = 0;
unsigned char b = 0;
};
void read_png(const std::string &file_path, buffer_unsigned &data);