Unix and Linux Discussions Tagged with color |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
4,702 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
8,026 |
What is on Your Mind? |
|
|
|
4 |
8,830 |
Shell Programming and Scripting |
|
|
|
18 |
12,051 |
Ubuntu |
|
|
|
17 |
3,438 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,290 |
Web Development |
|
|
|
7 |
2,082 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,122 |
Shell Programming and Scripting |
|
|
|
15 |
4,282 |
Shell Programming and Scripting |
|
|
|
1 |
2,017 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,673 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,385 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
16,953 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
12,915 |
AIX |
|
|
|
0 |
1,381 |
UNIX and Linux RSS News |
|
|
|
0 |
1,991 |
OS X Support RSS |
|
|
|
1 |
4,028 |
Solaris |
|
|
|
1 |
10,609 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,976 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,587 |
UNIX and Linux RSS News |
|
|
|
0 |
1,270 |
UNIX and Linux RSS News |
|
|
|
0 |
1,226 |
UNIX and Linux RSS News |
|
|
|
2 |
7,182 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,532 |
UNIX and Linux RSS News |
|
|
|
1 |
9,043 |
AIX |
|
|
|
16 |
9,403 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
40,031 |
Shell Programming and Scripting |
|
|
|
0 |
4,486 |
Shell Programming and Scripting |
|
|
|
1 |
8,696 |
Programming |
|
|
|
4 |
86,003 |
Shell Programming and Scripting |
|
|
|
0 |
1,002 |
Software Releases - RSS News |
|
|
|
1 |
10,800 |
OS X (Apple) |
|
|
|
0 |
7,268 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,975 |
Shell Programming and Scripting |
|
|
|
1 |
3,691 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
2,257 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,433 |
Programming |
|
|
|
2 |
12,372 |
Shell Programming and Scripting |
|
|
|
2 |
3,060 |
UNIX for Dummies Questions & Answers |
|
|
|
16 |
14,854 |
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)