aboutsummaryrefslogtreecommitdiff
path: root/cms.h
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-01 18:44:54 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-01 18:44:54 +0000
commit6569bd48e55e513307581a480a6280940aeaa663 (patch)
tree880c5b82addadbcdb560b0b6e0caf30105cb727a /cms.h
parentf2736d91627fbbe879b9692d0dc98013a59fe655 (diff)
merge hsv and hsl routines
Diffstat (limited to 'cms.h')
-rw-r--r--cms.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/cms.h b/cms.h
new file mode 100644
index 0000000..cdfa94f
--- /dev/null
+++ b/cms.h
@@ -0,0 +1,31 @@
+/* $Id$ */
+/*
+ * Copyright (c) 2014 Dimitri Sokolyuk <demon@dim13.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef __CMS_H
+#define __CMS_H
+
+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
+);
+
+#endif