Image::TextMode::Format::ADF - read and write ADF files


Image-TextMode documentation Contained in the Image-TextMode distribution.

Index


Code Index:

NAME

Top

Image::TextMode::Format::ADF - read and write ADF files

DESCRIPTION

Top

ADF stands for "Artworx Data Format".

ADF file stucture:

    +------------+
    | Version    |
    +------------+
    | Palette    |
    +------------+
    | Font       |
    +------------+
    | Image Data |
    +------------+

ACCESSORS

Top

* header - A header hashref containing a version number

METHODS

Top

new( %args )

Creates a ADF instance.

extensions( )

Returns 'adf'.

AUTHOR

Top

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Image-TextMode documentation Contained in the Image-TextMode distribution.

package Image::TextMode::Format::ADF;

use Moose;

extends 'Image::TextMode::Format', 'Image::TextMode::Canvas';

has 'header' =>
    ( is => 'rw', isa => 'HashRef', default => sub { { version => 1 } } );

sub extensions { return 'adf' }

no Moose;

__PACKAGE__->meta->make_immutable;

1;