App::MathImage::Image::Base::Caca -- draw images using Term::Caca
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');
App::MathImage::Image::Base::Caca is a subclass of Image::Base,
App::MathImage::Image::Base::Caca
Image::Base
Image::Base App::MathImage::Image::Base::Caca
App::MathImage::Image::Base::Caca extends Image::Base to draw into Term::Caca canvases.
Term::Caca
$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,
-width
-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);
Setting these changes the size of the image.
-caca
The underlying Term::Caca object.
Image::Base, Image::Base::GD, Image::Base::PNGwriter, Term::Caca, Image::Xbm, Image::Xpm, Image::Pbm
To install App::MathImage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::MathImage
CPAN shell
perl -MCPAN -e shell install App::MathImage
For more information on module installation, please visit the detailed CPAN module installation guide.