This file is indexed.

/usr/lib/perl5/pods/SDL/Palette.pod is in libsdl-perl 2.540-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
=pod

=head1 NAME

SDL::Palette -- Color palette for 8-bit pixel formats 

=head1 CATEGORY

Core, Video, Structure

=head1 DESCRIPTION

Each pixel in an 8-bit surface is an index into the colors field of the C<SDL::Palette> object stored in its C<SDL::PixelFormat>.
A C<SDL::Palette> is created automatically when SDL allocates a C<SDL::PixelFormat> for a surface.
This class has methods for returning the colors in a palette object.
The colors can be set with L<SDL::Video::set_colors|SDL::Video/set_colors> and L<SDL::Video::set_palette|SDL::Video/set_palette>.

=head1 METHODS

=head2 ncolors

  $ncolors = $palette->ncolors();

Returns the number of colors in palette.

=head2 colors

  @colors = @{ $palette->colors() };

Returns an array, C<ncolors> in length, of the L<SDL::Color>s in the palette.

=head2 color_index

  $color = $palette->color_index( $index );

Returns the L<SDL::Color> at the provided index of the palette.

=head1 SEE ALSO

L<SDL::Video> L<SDL::PixelFormat> L<SDL::Color> L<SDL::Surface>

=head1 AUTHORS

See L<SDL/AUTHORS>.

=cut