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


Image-ANSI documentation  | view source Contained in the Image-ANSI distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

METHODS

Top

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

Top

* Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Image-ANSI documentation  | view source Contained in the Image-ANSI distribution.