Index


NAME

Top

SDL::Palette - a perl extension

DESCRIPTION

Top

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.

METHODS

Top

ncolors ( )

Fetches the number of colors in palette

colors ( index )

Fetches an array of colors in palette

color_index ( index )

Fetches the SDL_Color at the provide index in palette

size

Returns the size of the palette.

SEE ALSO

Top

SDL::Color SDL::Surface