pods::SDL::Color man page on OpenSuSE

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

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

NAME
       SDL::Color - Format independent color description

   CATEGORY
       Core, Video, Structure

SYNOPSIS
	my $black = SDL::Color->new(0, 0, 0);
	my $color = SDL::Color->new(255, 0, 0);
	my $r = $color->r; # 255
	my $g = $color->g; # 0
	my $b = $color->b; # 0
	$color->g(255);
	$color->b(255);
	# $color is now white

DESCRIPTION
       "SDL_Color" describes a color in a format independent way.

METHODS
   new
	my $color = SDL::Color->new(255, 0, 0);

       The constructor creates a new color with the specified red, green and
       blue values.

   r
	my $r = $color->r;
	$color->r(128);

       If passed a value, this method sets the red component of the color; if
       not, it returns the red component of the color.

   g
	my $g = $color->g;
	$color->g(128);

       If passed a value, this method sets the green component of the color;
       if not, it returns the green component of the color.

   b
	my $b = $color->b;
	$color->b(128);

       If passed a value, this method sets the blue component of the color; if
       not, it returns the blue component of the color.

SEE ALSO
       SDL::Surface

AUTHORS
       See "AUTHORS" in SDL.

perl v5.18.1			  2013-09-28		   pods::SDL::Color(3)
[top]

List of man pages available for OpenSuSE

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