Unix and Linux Discussions Tagged with color |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
6,344 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
8,993 |
What is on Your Mind? |
|
|
|
4 |
10,217 |
Shell Programming and Scripting |
|
|
|
18 |
16,853 |
Ubuntu |
|
|
|
17 |
4,949 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
7,290 |
Web Development |
|
|
|
7 |
2,565 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,562 |
Shell Programming and Scripting |
|
|
|
15 |
4,721 |
Shell Programming and Scripting |
|
|
|
1 |
2,466 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,794 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,722 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
17,709 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
13,124 |
AIX |
|
|
|
0 |
1,536 |
UNIX and Linux RSS News |
|
|
|
0 |
2,062 |
OS X Support RSS |
|
|
|
1 |
4,332 |
Solaris |
|
|
|
1 |
10,933 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
11,862 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,689 |
UNIX and Linux RSS News |
|
|
|
0 |
1,342 |
UNIX and Linux RSS News |
|
|
|
0 |
1,350 |
UNIX and Linux RSS News |
|
|
|
2 |
7,418 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,757 |
UNIX and Linux RSS News |
|
|
|
1 |
9,213 |
AIX |
|
|
|
16 |
10,054 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
40,503 |
Shell Programming and Scripting |
|
|
|
0 |
4,784 |
Shell Programming and Scripting |
|
|
|
1 |
9,003 |
Programming |
|
|
|
4 |
86,664 |
Shell Programming and Scripting |
|
|
|
0 |
1,146 |
Software Releases - RSS News |
|
|
|
1 |
11,096 |
OS X (Apple) |
|
|
|
0 |
7,668 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,151 |
Shell Programming and Scripting |
|
|
|
1 |
4,100 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
2,436 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,927 |
Programming |
|
|
|
2 |
13,499 |
Shell Programming and Scripting |
|
|
|
2 |
3,497 |
UNIX for Dummies Questions & Answers |
|
|
|
16 |
16,375 |
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)