summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-12-03 16:27:45 -0500
committerTavian Barnes <tavianator@gmail.com>2011-12-03 16:27:45 -0500
commit003b3894abe2756541e9aac497058f491961bd17 (patch)
treecad8a1e435a7b9043b31c7a1ee39cc2b5d9adbfa /libdimension
parent0e6a0b0d3a3ea8dfabdbaddd2afa86fae65dc9e5 (diff)
downloaddimension-003b3894abe2756541e9aac497058f491961bd17.tar.xz
Use correct D65 values for dmnsn_color_intensity().
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/color.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libdimension/color.c b/libdimension/color.c
index 39f9b3d..862c8ea 100644
--- a/libdimension/color.c
+++ b/libdimension/color.c
@@ -184,8 +184,7 @@ dmnsn_color_from_sRGB(dmnsn_color color)
double
dmnsn_color_intensity(dmnsn_color color)
{
- return 0.2126198631048975*color.R + 0.7151387878413206*color.G
- + 0.0721499433963131*color.B;
+ return 0.2126*color.R + 0.7152*color.G + 0.0722*color.B;
}
/* Add two colors */