SDL::Palette -- Color palette for 8-bit pixel formats
Core, Video, Structure
Each pixel in an 8-bit surface is an index into the colors field of the SDL::Palette structure store in SDL::PixelFormat. A SDL::Palette should never need to be created manually. It is automatically created when SDL allocates a SDL::PixelFormat for a surface. The colors values of a SDL::Surface's palette can be set with the SDL::Video::set_colors.
SDL::Palette
SDL::PixelFormat
SDL::Surface
SDL::Video::set_colors
Fetches the number of colors in palette
Fetches an array of colors in palette
Fetches the SDL_Color at the provide index in palette
SDL::Color SDL::Surface
To install SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL
CPAN shell
perl -MCPAN -e shell install SDL
For more information on module installation, please visit the detailed CPAN module installation guide.