summaryrefslogtreecommitdiff
path: root/src/color.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.h')
-rw-r--r--src/color.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/color.h b/src/color.h
new file mode 100644
index 0000000..505ba9a
--- /dev/null
+++ b/src/color.h
@@ -0,0 +1,16 @@
+#ifndef UTIL_H
+#define UTIL_H
+
+#include <stdbool.h>
+#include <stdint.h>
+
+struct color {
+ float r;
+ float g;
+ float b;
+ float a;
+};
+
+struct color hex_to_color(const char *hex);
+
+#endif /* UTIL_H */