From 0e3ed6520624f579ffa0f93dfc3f504d7d277ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 2 Jun 2011 09:05:23 +0100 Subject: [PATCH] Go back to old luminescence values since the new ones produces to large values occasionally. --- src/color/Color.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/color/Color.js b/src/color/Color.js index f79a2091..0f1d93cf 100644 --- a/src/color/Color.js +++ b/src/color/Color.js @@ -78,11 +78,8 @@ var Color = this.Color = Base.extend(new function() { // Using the standard NTSC conversion formula that is used for // calculating the effective luminance of an RGB color: // http://www.mathworks.com/support/solutions/en/data/1-1ASCU/index.html?solution=1-1ASCU - return new GrayColor(1 - - (color._red * 0.2989 - + color._green * 0.5866 - + color._blue * 0.1145), - color._alpha); + return new GrayColor(1 - (color._red * 0.2989 + color._green * 0.587 + + color._blue * 0.114), color._alpha); }, 'gray-rgb': function(color) {