Moved old SDL::Palette to SDL::Game::Palette.
[sdlgit/SDL_perl.git] / lib / SDL / Palette.pm
CommitLineData
60891a9e 1#!perl
bfd90409 2package SDL::Palette;
3use strict;
084b921f 4use warnings;
60891a9e 5require Exporter;
6require DynaLoader;
7our @ISA = qw(Exporter DynaLoader);
8bootstrap SDL::Palette;
bfd90409 9
101;
11
60891a9e 12__END__
bfd90409 13
14=pod
15
16=head1 NAME
17
18SDL::Palette - a perl extension
19
20=head1 DESCRIPTION
21
60891a9e 22L<SDL::Palette> provides an interface to the C<SDL_Palette> structures,
bfd90409 23and can be used to set the color values of an existing palette's indexes.
24
25=head1 METHODS
26
60891a9e 27=head2 ncolors ( )
bfd90409 28
60891a9e 29Fetches the number of colors in palette
bfd90409 30
60891a9e 31=head2 colors ( index )
bfd90409 32
60891a9e 33Fetches an array of colors in palette
bfd90409 34
60891a9e 35=head2 color_index ( index )
bfd90409 36
60891a9e 37Fetches the SDL_Color at the provide index in palette
bfd90409 38
39=head2 size
40
41Returns the size of the palette.
42
bfd90409 43
44=head1 SEE ALSO
45
60891a9e 46L<SDL::Color> L<SDL::Surface>
bfd90409 47
48=cut