File Coverage

blib/lib/Image/TextMode/Format/ANSIMation.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package Image::TextMode::Format::ANSIMation;
2              
3 3     3   4748 use Moose;
  0            
  0            
4              
5             extends 'Image::TextMode::Format', 'Image::TextMode::Animation';
6              
7             use Image::TextMode::Palette::ANSI;
8              
9             has '+palette' => ( default => sub { Image::TextMode::Palette::ANSI->new } );
10              
11             sub extensions { return }
12              
13             no Moose;
14              
15             __PACKAGE__->meta->make_immutable;
16              
17             =head1 NAME
18              
19             Image::TextMode::Format::ANSIMation - read and write ANSIMation files
20              
21             =head1 DESCRIPTION
22              
23             ANSIMation is an pseudo-format whereby the ANSI is displayed at a slow
24             enough rate so that it appears to animate the image. This module simulates
25             this by assuming a C<position(0,0)> command is the start of a new "frame" in
26             the sequence.
27              
28             =head1 METHODS
29              
30             =head2 new( %args )
31              
32             Creates a ANSIMation instance.
33              
34             =head2 extensions( )
35              
36             Returns an empty list.
37              
38             =head1 AUTHOR
39              
40             Brian Cassidy E<lt>bricas@cpan.orgE<gt>
41              
42             =head1 COPYRIGHT AND LICENSE
43              
44             Copyright 2008-2013 by Brian Cassidy
45              
46             This library is free software; you can redistribute it and/or modify
47             it under the same terms as Perl itself.
48              
49             =cut
50              
51             1;