Query: sdl::color
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pods::SDL::Color(3pm) User Contributed Perl Documentation pods::SDL::Color(3pm)NAMESDL::Color - Format independent color description CATEGORY Core, Video, StructureSYNOPSISmy $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 whiteDESCRIPTION"SDL_Color" describes a color in a format independent way.METHODSnew 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 ALSOSDL::SurfaceAUTHORSSee "AUTHORS" in SDL. perl v5.14.2 2012-05-28 pods::SDL::Color(3pm)
Related Man Pages |
---|
cmap(5) - xfree86 |
sdl::color(3) - suse |
convert::color::cmy(3pm) - debian |
imager::color::float(3pm) - debian |
sdl::rect(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
auto setterm |
Help on file arrangement |
text color |
Adding Color using More |
Using color in scripts |