SDL::Color man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

SDL::Color(3)	      User Contributed Perl Documentation	 SDL::Color(3)

NAME
       SDL::Color - a SDL perl extension

SYNOPSIS
	 $color = new SDL::Color ( -r => 0xde, -g => 0xad, -b =>c0 );
	 $color = new SDL::Color -surface => $app, -pixel => $app->pixel($x,$y);
	 $color = new SDL::Color -color => SDL::NewColor(0xff,0xaa,0xdd);

DESCRIPTION
       "SDL::Color" is a wrapper for display format independent color
       representations, with the same interface as SDL::Color.

   new ( -color => )
       "SDL::Color::new" with a "-color" option will construct a new object
       referencing the passed SDL_Color*.

   new (-r => , -g => , -b => )
       "SDL::Color::new" with "-r,-g,-b" options will construct both a
       SDL_Color structure, and the associated object with the specified
       vales.

   new (-pixel =>, -surface =>)
       "SDL::Color::new" with "-pixel,-surface" options will generate a
       SDL_Color* with the r,g,b values associated with the integer value
       passed by "-pixel" for the given "-surface"'s format.

   r ( [ red ] ), g( [ green ] ), b( [ blue ] )
       "SDL::Color::r, SDL::Color::g, SDL::Color::b" are accessor methods for
       the red, green, and blue components respectively.  The color value can
       be set by passing a byte value (0-255) to each function.

   pixel ( surface )
       "SDL::Color::pixel" takes a "SDL::Surface" object and r,g,b values, and
       returns the integer representation of the closest color for the given
       surface.

AUTHOR
       David J. Goehrig

SEE ALSO
       perl SDL::Surface

perl v5.14.1			  2011-07-18			 SDL::Color(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net