aboutsummaryrefslogtreecommitdiff
path: root/cms.h
diff options
context:
space:
mode:
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