Unix and Linux Discussions Tagged with color |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
4,246 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
7,908 |
What is on Your Mind? |
|
|
|
4 |
8,563 |
Shell Programming and Scripting |
|
|
|
18 |
11,654 |
Ubuntu |
|
|
|
17 |
3,301 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,073 |
Web Development |
|
|
|
7 |
2,032 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,089 |
Shell Programming and Scripting |
|
|
|
15 |
4,232 |
Shell Programming and Scripting |
|
|
|
1 |
2,005 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,662 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,360 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
16,909 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
12,900 |
AIX |
|
|
|
0 |
1,369 |
UNIX and Linux RSS News |
|
|
|
0 |
1,986 |
OS X Support RSS |
|
|
|
1 |
4,000 |
Solaris |
|
|
|
1 |
10,577 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,923 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,566 |
UNIX and Linux RSS News |
|
|
|
0 |
1,269 |
UNIX and Linux RSS News |
|
|
|
0 |
1,218 |
UNIX and Linux RSS News |
|
|
|
2 |
7,168 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,513 |
UNIX and Linux RSS News |
|
|
|
1 |
9,034 |
AIX |
|
|
|
16 |
9,381 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
39,994 |
Shell Programming and Scripting |
|
|
|
0 |
4,441 |
Shell Programming and Scripting |
|
|
|
1 |
8,676 |
Programming |
|
|
|
4 |
85,924 |
Shell Programming and Scripting |
|
|
|
0 |
996 |
Software Releases - RSS News |
|
|
|
1 |
10,773 |
OS X (Apple) |
|
|
|
0 |
7,247 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,963 |
Shell Programming and Scripting |
|
|
|
1 |
3,661 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
2,249 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,395 |
Programming |
|
|
|
2 |
11,057 |
Shell Programming and Scripting |
|
|
|
2 |
3,044 |
UNIX for Dummies Questions & Answers |
|
|
|
16 |
14,750 |
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)