App-optex-pingu
view release on metacpan or search on metacpan
lib/App/optex/pingu/Picture.pm view on Meta::CPAN
push @image, $line;
}
wantarray ? @image : join('', map "$_\n", @image);
}
######################################################################
sub read_asc_1 {
local $_ = shift;
s/^#.*\n//mg;
s{ (?<str>(?<col>$color_re)\g{col}*) }{
ansi_color($+{col}, FB x length($+{str}))
}xge;
my @image = /.+/g;
wantarray ? @image : join('', map "$_\n", @image);
}
my $use_FB = 0; # use FULL BLOCK when upper/lower are same
my $use_BHB = 0; # use LOWER HALF BLOCK to show lower part
sub stringify_2 {
( run in 0.252 second using v1.01-cache-2.11-cpan-87723dcf8b7 )