App::MathImage::Image::Base::LifeBitmap -- game of life cellular bitmap in RLE format
use App::MathImage::Image::Base::LifeBitmap; my $image = App::MathImage::Image::Base::LifeBitmap->new (-width => 100, -height => 100); $image->rectangle (0,0, 99,99, 'b'); $image->xy (20,20, 'o'); $image->line (50,50, 70,70, 'o'); $image->line (50,50, 70,70, 'o'); $image->save ('/some/filename.rle');
App::MathImage::Image::Base::LifeBitmap is a subclass of Image::Base,
App::MathImage::Image::Base::LifeBitmap
Image::Base
Image::Base App::MathImage::Image::Base::LifeBitmap
App::MathImage::Image::Base::LifeBitmap extends Image::Base to create or update game of life RLE format bitmap files.
The colour names are " " (space), "b", "." or "clear" for background, and "o" or "set" for a set cell.
$image = App::MathImage::Image::Base::LifeRLE->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::LifeRLE->new (-width => 200, -height => 100);
Or an existing file can be read,
$image = App::MathImage::Image::Base::LifeRLE->new (-file => '/some/filename.rle');
Image::Base, Image::Xbm
golly(6)
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.