aboutsummaryrefslogtreecommitdiff
path: root/hsl.h
diff options
context:
space:
mode:
Diffstat (limited to 'hsl.h')
-rw-r--r--hsl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hsl.h b/hsl.h
new file mode 100644
index 00000000..2a46c117
--- /dev/null
+++ b/hsl.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#include <stdint.h>
+
+void rgb_to_hsl(uint32_t rgb, int *hue, int *sat, int *lum);
+uint32_t hsl_to_rgb(int hue, int sat, int lum);