From: Marius Gavrilescu Date: Wed, 17 Jun 2015 13:06:47 +0000 (+0300) Subject: Use new XYZ matrices (from rev4) X-Git-Tag: 0.002~5 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=5c90804e1b58f91662ab01c5eb48a947fa6bce10;p=convert-color-hsluv.git Use new XYZ matrices (from rev4) --- diff --git a/lib/Convert/Color/XYZ.pm b/lib/Convert/Color/XYZ.pm index 73d5eab..97a10f2 100644 --- a/lib/Convert/Color/XYZ.pm +++ b/lib/Convert/Color/XYZ.pm @@ -11,13 +11,13 @@ use List::Util qw/sum/; our $VERSION = '0.001'; use constant +{ ## no critic (Capitalization) - MAT_R => [ 3.240969941904521, -1.537383177570093, -0.498610760293 ], - MAT_G => [ -0.96924363628087, 1.87596750150772, 0.041555057407175 ], - MAT_B => [ 0.055630079696993, -0.20397695888897, 1.056971514242878 ], + MAT_R => [ 3.2409699419045214, -1.5373831775700935, -0.49861076029300328 ], + MAT_G => [ -0.96924363628087983, 1.8759675015077207, 0.041555057407175613 ], + MAT_B => [ 0.055630079696993609, -0.20397695888897657, 1.0569715142428786 ], - IMAT_X => [ 0.41239079926595, 0.35758433938387, 0.18048078840183 ], - IMAT_Y => [ 0.21263900587151, 0.71516867876775, 0.072192315360733 ], - IMAT_Z => [ 0.019330818715591, 0.11919477979462, 0.95053215224966 ], + IMAT_X => [ 0.41239079926595948, 0.35758433938387796, 0.18048078840183429 ], + IMAT_Y => [ 0.21263900587151036, 0.71516867876775593, 0.072192315360733715 ], + IMAT_Z => [ 0.019330818715591851, 0.11919477979462599, 0.95053215224966058 ], }; __PACKAGE__->register_color_space('xyz');