From 003b3894abe2756541e9aac497058f491961bd17 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 3 Dec 2011 16:27:45 -0500 Subject: Use correct D65 values for dmnsn_color_intensity(). --- libdimension/color.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libdimension') 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 */ -- cgit v1.2.3