The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Term::Caca::Sprite - an OO-interface to caca_sprite

VERSION

version 3.1.0

SYNOPSIS

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.

DESCRIPTION

a brief summary of the module written with users in mind.

METHODS

new

...

Example:

load

The load() method is a synonym for new() and they can be used interchangably.

get_frames

...

Example:

get_width

...

Example:

get_height

...

Example:

get_dx

...

Example:

get_dy

...

Example:

draw

...

Example:

DESTROY

...

Example:

CLASS VARIABLES

cvars

DIAGNOSTICS

no errors

AUTHOR

John BEPPU <beppu@cpan.org>

SEE ALSO

perl(1)

AUTHORS

  • John Beppu <beppu@cpan.org>

  • Yanick Champoux <yanick@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2019, 2018, 2013, 2011 by John Beppu.

This is free software, licensed under:

  DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004