projects
/
convert-color-husl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf4f93
)
Fix typo in LUV -> XYZ conversion
author
Marius Gavrilescu
<marius@ieval.ro>
Wed, 8 Jul 2015 21:47:57 +0000
(
00:47
+0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Wed, 8 Jul 2015 21:47:57 +0000
(
00:47
+0300)
lib/Convert/Color/LUV.pm
patch
|
blob
|
blame
|
history
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 $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)
}
This page took
0.010242 seconds
and
4
git commands to generate.