NAME

Image::TextMode::Animation - A base class for text mode animation file formats

DESCRIPTION

This class should be used for any format that requires a sequence of frames for display.

ACCESSORS

  • frames - an arrayref of frame objects

METHODS

new( %args )

Creates a new instance.

add_frame( $frame )

Adds a frame to the end of the array.

width( )

Returns the largest frame width.

height( )

Returns the largest frame height.

dimensions( )

Returns the a list containing the values of width and height.

as_ascii( )

Returns all of the text from all of the frames.

PROXIED METHODS

The following methods are proxies to the last element in frames.

  • getpixel

  • getpixel_obj

  • putpixel

  • clear_screen

  • clear_line

AUTHOR

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2008-2022 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.