aboutsummaryrefslogtreecommitdiff
path: root/src/palette.h
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2023-09-26 22:32:35 +0300
committerKrow Savcik <krow@savcik.xyz>2023-09-26 22:32:35 +0300
commit9e660e594f6d3a43ea1427fb872801a2fcedad93 (patch)
tree459cd0c6fc5fef0366f7ef249ae19dd67c363772 /src/palette.h
initial commit
Diffstat (limited to 'src/palette.h')
-rw-r--r--src/palette.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/palette.h b/src/palette.h
new file mode 100644
index 0000000..3ac5c93
--- /dev/null
+++ b/src/palette.h
@@ -0,0 +1,15 @@
+struct Color {
+ unsigned char r, g, b;
+};
+
+struct Palette {
+ unsigned int num;
+ struct Color *clist;
+};
+
+typedef struct Color Color;
+typedef struct Palette Palette;
+
+Palette *palette_open_gpl(const char *);
+Palette *palette_clone(const Palette *);
+Palette *palette_open_gpl(const char *);