aboutsummaryrefslogtreecommitdiff
path: root/cms.h
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-12 23:09:43 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-12 23:09:43 +0000
commit11de1f857ce719a9daca77f59382f4e65fee5546 (patch)
treeb67600894a045e2f9819f0646a81d0ae7ad7552d /cms.h
parent78b27c6c0394d84e71c5ecc22f3c6fec9d731694 (diff)
sync with HEAD
Diffstat (limited to 'cms.h')
-rw-r--r--cms.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/cms.h b/cms.h
index 111b3ae..aa1083a 100644
--- a/cms.h
+++ b/cms.h
@@ -18,15 +18,17 @@
#ifndef __CMS_H
#define __CMS_H
+struct hsl {
+ double h, s, l;
+};
+
+struct palette {
+ struct hsl from, to;
+};
+
__BEGIN_DECLS
-void hsv2rgb(
- unsigned short *r, unsigned short *g, unsigned short *b,
- double h, double s, double v
-);
-void hsl2rgb(
- unsigned short *r, unsigned short *g, unsigned short *b,
- double h, double s, double l
-);
+unsigned long *init_palette(Display *, struct palette, int);
+unsigned long hslcolor(Display *, double h, double s, double l);
__END_DECLS
#endif