Unix and Linux Discussions Tagged with color |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
5,632 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
8,500 |
What is on Your Mind? |
|
|
|
4 |
9,573 |
Shell Programming and Scripting |
|
|
|
18 |
13,825 |
Ubuntu |
|
|
|
17 |
4,185 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
6,323 |
Web Development |
|
|
|
7 |
2,327 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,281 |
Shell Programming and Scripting |
|
|
|
15 |
4,427 |
Shell Programming and Scripting |
|
|
|
1 |
2,139 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,729 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,526 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
17,215 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
12,990 |
AIX |
|
|
|
0 |
1,459 |
UNIX and Linux RSS News |
|
|
|
0 |
2,022 |
OS X Support RSS |
|
|
|
1 |
4,152 |
Solaris |
|
|
|
1 |
10,735 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
11,362 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,641 |
UNIX and Linux RSS News |
|
|
|
0 |
1,311 |
UNIX and Linux RSS News |
|
|
|
0 |
1,278 |
UNIX and Linux RSS News |
|
|
|
2 |
7,283 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,647 |
UNIX and Linux RSS News |
|
|
|
1 |
9,093 |
AIX |
|
|
|
16 |
9,587 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
40,239 |
Shell Programming and Scripting |
|
|
|
0 |
4,609 |
Shell Programming and Scripting |
|
|
|
1 |
8,810 |
Programming |
|
|
|
4 |
86,234 |
Shell Programming and Scripting |
|
|
|
0 |
1,043 |
Software Releases - RSS News |
|
|
|
1 |
10,955 |
OS X (Apple) |
|
|
|
0 |
7,427 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,055 |
Shell Programming and Scripting |
|
|
|
1 |
3,828 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
2,313 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,618 |
Programming |
|
|
|
2 |
12,961 |
Shell Programming and Scripting |
|
|
|
2 |
3,196 |
UNIX for Dummies Questions & Answers |
|
|
|
16 |
15,399 |
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)