1SDL::Palette(3)       User Contributed Perl Documentation      SDL::Palette(3)
2
3
4

NAME

6       SDL::Palette - a perl extension
7

DESCRIPTION

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

METHODS

13       blue ( index, [value] )
14
15       Fetches and sets the blue component of the color at index.
16
17       green ( index, [value] )
18
19       Fetches and sets the green component of the color at index.
20
21       red ( index, [value] )
22
23       Fetches and sets the red component of the color at index.
24
25       color ( index, [ r, g, b ] )
26
27       Fetches and sets the RGB, returns an SDL_Color *.
28
29       size
30
31       Returns the size of the palette.
32

AUTHOR

34       David J. Goehrig
35

SEE ALSO

37       perl SDL::Color SDL::Surface
38
39
40
41perl v5.8.8                       2006-08-28                   SDL::Palette(3)
Impressum