summaryrefslogtreecommitdiffstats
path: root/libdimension/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-16 01:49:40 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-16 01:49:40 +0000
commit90564274757e489429daf8bcdb92009563fd2efd (patch)
tree854503bb591bcd73b4244cd622a6692a815a16b8 /libdimension/color.c
parent6b4dc860466ce4794b346533162291046a6ee96c (diff)
downloaddimension-90564274757e489429daf8bcdb92009563fd2efd.tar.xz
Render pigments.
Diffstat (limited to 'libdimension/color.c')
-rw-r--r--libdimension/color.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdimension/color.c b/libdimension/color.c
index c9a421e..7fb73ed 100644
--- a/libdimension/color.c
+++ b/libdimension/color.c
@@ -26,6 +26,12 @@ const dmnsn_CIE_XYZ dmnsn_whitepoint = { .X = 0.9504060171449392,
.Y = 0.9999085943425312,
.Z = 1.089062231497274 };
+/* Standard colors */
+const dmnsn_color dmnsn_black = { .X = 0.0, .Y = 0.0, .Z = 0.0 };
+const dmnsn_color dmnsn_white = { .X = 0.9504060171449392,
+ .Y = 0.9999085943425312,
+ .Z = 1.089062231497274 };
+
/* Convert a CIE XYZ color to a dmnsn_color (actually a no-op) */
dmnsn_color
dmnsn_color_from_XYZ(dmnsn_CIE_XYZ XYZ)