X-Git-Url: http://git.ieval.ro/?p=convert-color-husl.git;a=blobdiff_plain;f=snapshot-to-csv;h=b434939da0b61ee52662c170d99b7afb8d2b7f12;hp=5dd2445d6d0e707eb95dc6b8a660cd8bb489bc25;hb=HEAD;hpb=4e59696a82a1dceb7bf28416d0cb2ce58cf351bd diff --git a/snapshot-to-csv b/snapshot-to-csv index 5dd2445..b434939 100755 --- a/snapshot-to-csv +++ b/snapshot-to-csv @@ -1,5 +1,5 @@ #!/usr/bin/perl -use 5.008009; +use 5.014000; use strict; use warnings; @@ -14,6 +14,7 @@ my @colors = qw/xyz luv lch husl huslp/; say join ',', qw/rgb8 xyz_x xyz_y xyz_z luv_l luv_u luv_v lch_l lch_c lch_h husl_h husl_s husl_l huslp_h husl_s husl_l/; for my $rgb8 (sort keys %tests) { + next if $rgb8 =~ m/[13579bde]/i; my @cols = map { @{$tests{$rgb8}{$_}} } @colors; say join ',', substr($rgb8, 1), map { sprintf '%.4f', $_ } @cols; }