Unix and Linux Discussions Tagged with color |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
6,403 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
9,049 |
What is on Your Mind? |
|
|
|
4 |
10,232 |
Shell Programming and Scripting |
|
|
|
18 |
16,996 |
Ubuntu |
|
|
|
17 |
4,995 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
7,348 |
Web Development |
|
|
|
7 |
2,575 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,567 |
Shell Programming and Scripting |
|
|
|
15 |
4,726 |
Shell Programming and Scripting |
|
|
|
1 |
2,492 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,796 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,732 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
17,719 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
13,128 |
AIX |
|
|
|
0 |
1,538 |
UNIX and Linux RSS News |
|
|
|
0 |
2,063 |
OS X Support RSS |
|
|
|
1 |
4,336 |
Solaris |
|
|
|
1 |
10,942 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
11,876 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,690 |
UNIX and Linux RSS News |
|
|
|
0 |
1,342 |
UNIX and Linux RSS News |
|
|
|
0 |
1,350 |
UNIX and Linux RSS News |
|
|
|
2 |
7,423 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,763 |
UNIX and Linux RSS News |
|
|
|
1 |
9,216 |
AIX |
|
|
|
16 |
10,085 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
40,507 |
Shell Programming and Scripting |
|
|
|
0 |
4,790 |
Shell Programming and Scripting |
|
|
|
1 |
9,006 |
Programming |
|
|
|
4 |
86,668 |
Shell Programming and Scripting |
|
|
|
0 |
1,147 |
Software Releases - RSS News |
|
|
|
1 |
11,107 |
OS X (Apple) |
|
|
|
0 |
7,679 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,152 |
Shell Programming and Scripting |
|
|
|
1 |
4,149 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
2,439 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,944 |
Programming |
|
|
|
2 |
13,509 |
Shell Programming and Scripting |
|
|
|
2 |
3,511 |
UNIX for Dummies Questions & Answers |
|
|
|
16 |
16,412 |
Programming |
pods::SDL::Color(3pm) User Contributed Perl Documentation pods::SDL::Color(3pm)
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.14.2 2012-05-28 pods::SDL::Color(3pm)