Brian Cassidy > Image-ANSI > Image::ANSI::Palette

Download:
Image-ANSI-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.10   Source  

NAME ^

Image::ANSI::Palette - A base class palettes

SYNOPSIS ^

        # use Image::ANSI::Palette::VGA or your own
        $pal = Image::ANSI::Palette:VGA->new;

METHODS ^

new( [$palette] )

Creates a new Image::ANSI::Palette object.

get( $index )

Get the rgb triple at index $index

set( $index, $rgb )

Write an rgb triple at index $index

clear( )

Clears any in-memory data.

colors( )

General accessor to the palette of colors

AUTHOR ^

COPYRIGHT AND LICENSE ^

Copyright 2004-2009 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: