summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/color.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h
index 67fa032..43edbff 100644
--- a/libdimension/dimension/color.h
+++ b/libdimension/dimension/color.h
@@ -25,6 +25,8 @@
#ifndef DIMENSION_COLOR_H
#define DIMENSION_COLOR_H
+#include <stdbool.h>
+
/* Internally, we use sRGB color. */
typedef struct {
double filter, trans; /* Filter transparancy only lets light of this color
@@ -67,6 +69,9 @@ extern const dmnsn_color dmnsn_black, dmnsn_white, dmnsn_red, dmnsn_green,
/* Standard whitepoint, determined by the conversion of sRGB white to CIE XYZ */
extern const dmnsn_CIE_XYZ dmnsn_whitepoint;
+/* Is this color black? */
+bool dmnsn_color_is_black(dmnsn_color color);
+
/* Color conversions */
dmnsn_color dmnsn_color_from_XYZ(dmnsn_CIE_XYZ XYZ);