Term::Caca::Sprite - an OO-interface to caca_sprite
Basic usage
use Term::Caca::Sprite; eval { my $sprite = Term::Caca::Sprite->new('/tmp/sprite.txt'); my ($x, $y, $frame) = (8, 20, 0); $sprite->draw($x, $y, $frame); }; # The destructor will take care of releasing memory.
a brief summary of the module written with users in mind.
...
Example:
The load() method is a synonym for new() and they can be used interchangably.
cvars
no errors
John BEPPU <beppu@cpan.org>
perl(1)
To install Term::Caca, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::Caca
CPAN shell
perl -MCPAN -e shell install Term::Caca
For more information on module installation, please visit the detailed CPAN module installation guide.