Remove many colors from CSV snapshot
[convert-color-husl.git] / snapshot-to-csv
index 5dd2445d6d0e707eb95dc6b8a660cd8bb489bc25..b434939da0b61ee52662c170d99b7afb8d2b7f12 100755 (executable)
@@ -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;
 }
This page took 0.009261 seconds and 4 git commands to generate.