SDL::Palette - a perl extension


Back to Top


NAME

SDL::Palette - a perl extension

Back to Top


DESCRIPTION

the SDL::Palette manpage provides an interface to the SDL_Palette structures, and can be used to set the color values of an existing palette's indexes.

Back to Top


METHODS

blue ( index, [value] )

Fetches and sets the blue component of the color at index.

green ( index, [value] )

Fetches and sets the green component of the color at index.

red ( index, [value] )

Fetches and sets the red component of the color at index.

color ( index, [ r, g, b ] )

Fetches and sets the RGB, returns an SDL_Color *.

size

Returns the size of the palette.

Back to Top


AUTHOR

David J. Goehrig

Back to Top


SEE ALSO

perl the SDL::Color manpage the SDL::Surface manpage

Back to Top

 SDL::Palette - a perl extension