pods::SDL::Palette man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

pods::SDL::Palette(3) User Contributed Perl Documentationpods::SDL::Palette(3)

NAME
       SDL::Palette -- Color palette for 8-bit pixel formats

CATEGORY
       Core, Video, Structure

DESCRIPTION
       Each pixel in an 8-bit surface is an index into the colors field of the
       "SDL::Palette" object stored in its "SDL::PixelFormat".	A
       "SDL::Palette" is created automatically when SDL allocates a
       "SDL::PixelFormat" for a surface.  This class has methods for returning
       the colors in a palette object.	The colors can be set with
       SDL::Video::set_colors and SDL::Video::set_palette.

METHODS
   ncolors
	 $ncolors = $palette->ncolors();

       Returns the number of colors in palette.

   colors
	 @colors = @{ $palette->colors() };

       Returns an array, "ncolors" in length, of the SDL::Colors in the
       palette.

   color_index
	 $color = $palette->color_index( $index );

       Returns the SDL::Color at the provided index of the palette.

SEE ALSO
       SDL::Video SDL::PixelFormat SDL::Color SDL::Surface

AUTHORS
       See "AUTHORS" in SDL.

perl v5.18.1			  2013-09-28		 pods::SDL::Palette(3)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net