diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-12-03 16:27:45 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-12-03 16:27:45 -0500 |
commit | 003b3894abe2756541e9aac497058f491961bd17 (patch) | |
tree | cad8a1e435a7b9043b31c7a1ee39cc2b5d9adbfa /libdimension | |
parent | 0e6a0b0d3a3ea8dfabdbaddd2afa86fae65dc9e5 (diff) | |
download | dimension-003b3894abe2756541e9aac497058f491961bd17.tar.xz |
Use correct D65 values for dmnsn_color_intensity().
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/color.c | 3 |
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 */ |