projects
/
convert-color-husl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in LUV -> XYZ conversion
[convert-color-husl.git]
/
lib
/
Convert
/
Color
/
LUV.pm
diff --git
a/lib/Convert/Color/LUV.pm
b/lib/Convert/Color/LUV.pm
index bc4d8549392900b5b7a28cb5b5e535b596e758f3..926844432e0899b746d8ea6255e127ffe38977c5 100644
(file)
--- 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 $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 - (1
4
* $var_v * $y) - ($var_v * $x)) / (3 * $var_v);
+ my $z = (9 * $y - (1
5
* $var_v * $y) - ($var_v * $x)) / (3 * $var_v);
Convert::Color::XYZ->new($x, $y, $z)
}
Convert::Color::XYZ->new($x, $y, $z)
}
This page took
0.009576 seconds
and
4
git commands to generate.