Query: sdl::palette
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pods::SDL::Palette(3pm) User Contributed Perl Documentation pods::SDL::Palette(3pm)NAMESDL::Palette -- Color palette for 8-bit pixel formatsCATEGORYCore, Video, StructureDESCRIPTIONEach 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.METHODSncolors $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 ALSOSDL::Video SDL::PixelFormat SDL::Color SDL::SurfaceAUTHORSSee "AUTHORS" in SDL. perl v5.14.2 2012-05-28 pods::SDL::Palette(3pm)
Related Man Pages |
---|
sdl::video(3) - suse |
sdl::cdtrack(3pm) - debian |
sdl::color(3pm) - debian |
sdl::mouse(3pm) - debian |
sdl::overlay(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
How can I do this in VI editor? |
Is UNIX an open source OS ? |
One instance of comparing grep and awk |
Weird 'find' results |
My first PERL incarnation... Audio Oscillograph |