SDL::Palette - a perl extension
SDL::Palette provides an interface to the SDL_Palette structures, and can be used to set the color values of an existing palette's indexes.
Fetches and sets the blue component of the color at index.
Fetches and sets the green component of the color at index.
Fetches and sets the red component of the color at index.
Fetches and sets the RGB, returns an SDL_Color *.
Returns the size of the palette.
David J. Goehrig
perl 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.