NAME
App::MathImage::Image::Base::Caca -- draw images using Term::Caca
SYNOPSIS
use App::MathImage::Image::Base::Caca;
my $image = App::MathImage::Image::Base::Caca->new (-width => 100,
-height => 100);
$image->rectangle (0,0, 99,99, 'white');
$image->xy (20,20, 'black');
$image->line (50,50, 70,70, '#FF00FF');
$image->line (50,50, 70,70, '#0000AAAA9999');
$image->save ('/some/filename.png');
CLASS HIERARCHY
App::MathImage::Image::Base::Caca
is a subclass of Image::Base
,
Image::Base
App::MathImage::Image::Base::Caca
DESCRIPTION
App::MathImage::Image::Base::Caca
extends Image::Base
to draw into Term::Caca
canvases.
FUNCTIONS
$image = App::MathImage::Image::Base::Caca->new (key=>value,...)
-
Create and return a new image object. A new image can be started with
-width
and-height
,$image = App::MathImage::Image::Base::Caca->new (-width => 200, -height => 100);
Or an existing file can be read,
$image = App::MathImage::Image::Base::Caca->new (-file => '/some/filename.png');
Or a
Term::Caca
object can be given,$image = App::MathImage::Image::Base::Caca->new (-caca => $cacacanvas);
ATTRIBUTES
-width
(integer)-height
(integer)-
Setting these changes the size of the image.
-caca
-
The underlying
Term::Caca
object.
SEE ALSO
Image::Base, Image::Base::GD, Image::Base::PNGwriter, Term::Caca, Image::Xbm, Image::Xpm, Image::Pbm