From: Marius Gavrilescu Date: Wed, 8 Jul 2015 21:47:57 +0000 (+0300) Subject: Fix typo in LUV -> XYZ conversion X-Git-Tag: 0.002001~5 X-Git-Url: http://git.ieval.ro/?p=convert-color-husl.git;a=commitdiff_plain;h=936b14ca363796df38f8cd3a218a9f361dfac7bd Fix typo in LUV -> XYZ conversion --- diff --git a/lib/Convert/Color/LUV.pm b/lib/Convert/Color/LUV.pm index bc4d854..9268444 100644 --- a/lib/Convert/Color/LUV.pm +++ b/lib/Convert/Color/LUV.pm @@ -54,7 +54,7 @@ sub convert_to_xyz { my $var_v = $v / (13 * $l) + REF_V; my $y = _l_to_y $l; my $x = 9 * $y * $var_u / (4 * $var_v); - my $z = (9 * $y - (14 * $var_v * $y) - ($var_v * $x)) / (3 * $var_v); + my $z = (9 * $y - (15 * $var_v * $y) - ($var_v * $x)) / (3 * $var_v); Convert::Color::XYZ->new($x, $y, $z) }