X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdocs%2FPalette.pod;fp=lib%2Fdocs%2FPalette.pod;h=d6730dd84e3ffd0d8d17332dd402490aa683516e;hb=896b04ee008898e1c1edbdd432bedaa8643400dc;hp=0000000000000000000000000000000000000000;hpb=b3cdeb39a431b026168c4060bf74001fcee07493;p=sdlgit%2FSDL_perl.git diff --git a/lib/docs/Palette.pod b/lib/docs/Palette.pod new file mode 100644 index 0000000..d6730dd --- /dev/null +++ b/lib/docs/Palette.pod @@ -0,0 +1,35 @@ +=pod + +=head1 NAME + +SDL::Palette - a perl extension + +=head1 DESCRIPTION + +L provides an interface to the C structures, +and can be used to set the color values of an existing palette's indexes. + +=head1 METHODS + +=head2 ncolors ( ) + +Fetches the number of colors in palette + +=head2 colors ( index ) + +Fetches an array of colors in palette + +=head2 color_index ( index ) + +Fetches the SDL_Color at the provide index in palette + +=head2 size + +Returns the size of the palette. + + +=head1 SEE ALSO + +L L + +=cut