summaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2020-08-30 12:17:33 +0200
committerjaseg <git@jaseg.net>2020-08-30 12:17:33 +0200
commitbfd8db0098413474514eab4dfebeb0803ad94fc4 (patch)
tree34bea46c06def022c6197e1a3b760620e1517d84 /color.h
parente51d35f6d6d15ee09dd368b5c47c547f8646bdf5 (diff)
downloadmoargb-master.tar.gz
moargb-master.tar.bz2
moargb-master.zip
Dimming worksHEADmaster
Diffstat (limited to 'color.h')
-rw-r--r--color.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/color.h b/color.h
new file mode 100644
index 0000000..07f46d3
--- /dev/null
+++ b/color.h
@@ -0,0 +1,14 @@
+#ifndef __COLOR_H__
+#define __COLOR_H__
+
+struct hsvf {
+ float h, s, v;
+};
+
+struct rgbf {
+ float r, g, b;
+};
+
+void hsv_to_rgb(struct hsvf *hsv_in, struct rgbf *rgb_out);
+
+#endif /* __COLOR_H__ */