Unix and Linux Discussions Tagged with color |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
4,903 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
8,111 |
What is on Your Mind? |
|
|
|
4 |
8,980 |
Shell Programming and Scripting |
|
|
|
18 |
12,365 |
Ubuntu |
|
|
|
17 |
3,542 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,436 |
Web Development |
|
|
|
7 |
2,112 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,142 |
Shell Programming and Scripting |
|
|
|
15 |
4,304 |
Shell Programming and Scripting |
|
|
|
1 |
2,039 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,680 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,398 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
16,972 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
12,921 |
AIX |
|
|
|
0 |
1,389 |
UNIX and Linux RSS News |
|
|
|
0 |
1,996 |
OS X Support RSS |
|
|
|
1 |
4,042 |
Solaris |
|
|
|
1 |
10,618 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
11,021 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,592 |
UNIX and Linux RSS News |
|
|
|
0 |
1,275 |
UNIX and Linux RSS News |
|
|
|
0 |
1,235 |
UNIX and Linux RSS News |
|
|
|
2 |
7,191 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,543 |
UNIX and Linux RSS News |
|
|
|
1 |
9,045 |
AIX |
|
|
|
16 |
9,422 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
40,053 |
Shell Programming and Scripting |
|
|
|
0 |
4,511 |
Shell Programming and Scripting |
|
|
|
1 |
8,707 |
Programming |
|
|
|
4 |
86,049 |
Shell Programming and Scripting |
|
|
|
0 |
1,006 |
Software Releases - RSS News |
|
|
|
1 |
10,821 |
OS X (Apple) |
|
|
|
0 |
7,280 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,982 |
Shell Programming and Scripting |
|
|
|
1 |
3,702 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
2,264 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,454 |
Programming |
|
|
|
2 |
12,692 |
Shell Programming and Scripting |
|
|
|
2 |
3,076 |
UNIX for Dummies Questions & Answers |
|
|
|
16 |
14,927 |
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)