aboutsummaryrefslogtreecommitdiff
path: root/sixel-hls.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 21:06:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 21:06:14 +0000
commit3a24777e45238a896743707cad65f2b5bef0a708 (patch)
tree0f524d0e80fb81e1b1086e00b771e21b768d6139 /sixel-hls.h
parentkeymap: tab: handle all modifiers (diff)
parentREADME: add screenshot of sixel graphics (diff)
Merge branch 'sixel-graphics'
Diffstat (limited to 'sixel-hls.h')
-rw-r--r--sixel-hls.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sixel-hls.h b/sixel-hls.h
new file mode 100644
index 00000000..6d6b9f2f
--- /dev/null
+++ b/sixel-hls.h
@@ -0,0 +1,9 @@
+#pragma once
+
+/*
+ * Primary color hues:
+ * blue: 0 degrees
+ * red: 120 degrees
+ * green: 240 degrees
+ */
+int hls_to_rgb(int hue, int lum, int sat);