Brian Cassidy > Image-ANSI-0.10 > Image::ANSIMation::Parser

Download:
Image-ANSI-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.10   Source  

NAME ^

Image::ANSIMation::Parser - Reads in ANSI animation (ANSIMation) files

SYNOPSIS ^

        my $parser = Image::ANSIMation::Parser->new;
        my $anim   = $parser->parse( file => 'file.ans' );

DESCRIPTION ^

This parser inherits from the regular Image::ANSI::Parser. The only extra functionality it adds in the ability to store frames.

METHODS ^

set_position( $x, $y )

Sets the cursor position. If we're resetting it to (1, 1) we consider that a new frame.

parse( %options )

Parses a file and returns the ansimation.

store_frame( )

Stores the value of $self-<gtansi> as the next frame and resets the current ansi.

AUTHOR ^

COPYRIGHT AND LICENSE ^

Copyright 2004-2009 by Brian Cassidy

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

syntax highlighting: