From 936b14ca363796df38f8cd3a218a9f361dfac7bd Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 9 Jul 2015 00:47:57 +0300 Subject: [PATCH] Fix typo in LUV -> XYZ conversion --- lib/Convert/Color/LUV.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.39.2