Graphics::Color(3pm) User Contributed Perl Documentation Graphics::Color(3pm)NAME
Graphics::Color - Device and library agnostic color spaces.
VERSION
version 0.29
SYNOPSIS
my $color = Graphics::Color::RGB->new(
red => .5, green => .5, blue => .5, alpha => .5
);
say $color->as_string;
DESCRIPTION
Graphics color is a device and library agnostic system for creating and manipulating colors in various color spaces.
DISCLAIMER
I'm not an art student or a wizard of arcane color knowledge. I'm a normal programmer with a penchant for things graphical. Hence this
module is likely incomplete in some places. Patches are encouraged. I've intentions of adding more color spaces as well as conversion
routines (where applicable).
COLOR TYPES
The following color types are supported.
CMYK
HSL
HSV
RGB
YIQ
YUV
METHODS
derive
Clone this color but allow one of more of it's attributes to change by passing in a hashref of options:
my $new = $color->derive({ attr => $newvalue });
The returned color will be identical to the cloned one, save the attributes specified.
equal_to
Compares this color to the provided one. Returns 1 if true, else 0;
not_equal_to
The opposite of equal_to.
AUTHOR
Cory G Watson <gphat@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Cold Hard Code, LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.12.4 2011-08-11 Graphics::Color(3pm)
Check Out this Related Man Page
Graphics::Color::HSV(3pm) User Contributed Perl Documentation Graphics::Color::HSV(3pm)NAME
Graphics::Color::HSV - HSV color space
VERSION
version 0.29
SYNOPSIS
use Graphics::Color::HSV;
my $color = Graphics::Color::HSV->new({
hue => 120,
saturation => .5,
value => .25,
});
DESCRIPTION
Graphics::Color::HSV represents a Color in an RGB color space. HSLV stands for Hue Saturation and Value. HSV is closely related to HSL.
ATTRIBUTES
hue
h
Set/Get the hue component of this Color.
saturation
s
Set/Get the saturation component of this Color.
value
v
Set/Get the value component of this Color.
alpha
Set/Get the alpha component of this Color.
name
Get the name of this color. Only valid if the color was created by name.
METHODS
as_string
Get a string version of this Color in the form of HUE,SATURATION,VALUE,ALPHA.
as_percent_string
Return a percent formatted value for this color. This format is suitable for CSS HSV values.
as_array
Get the HSV values as an array
as_array_with_alpha>
Get the HSVA values as an array
equal_to
Compares this color to the provided one. Returns 1 if true, else 0;
not_equal_to
The opposite of equal_to.
to_rgb
Creates this HSV color in RGB space. Returns a Graphics::Color::RGB object.
AUTHOR
Cory G Watson <gphat@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Cold Hard Code, LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.12.4 2011-08-25 Graphics::Color::HSV(3pm)
We work with Digital Workstations and some NT-Workstation which communicate by a reflection software (WRQ) with the UNIX-Server.
We changed our main application (GIS-System) to true-color. Since the change two of our users with the reflection software can't start the application anymore. One is... (5 Replies)
Hey guys, i'm in trouble, i'm high school teacher, and a student ask me for help, he want's to know where he can study C language for his application exam. Somebody could help us? (1 Reply)
Hi,
i have to form the header and add fillers(spaces) to it.
I have done something like this. i have added 10 spaces at the end
HDR="AAAABBBBCCNN "
echo $HDR >> file1.dat
but the spaces are not being stored in the file. How to add the spaces. (2 Replies)
Hi everyone
I’m not a programmer and my knowledge of scripting is very poor, now I’m stock in a task at work and would really appreciate it if someone could help me out.
Here is the problem:
1. I have a file with 9 million entries that look like this :
611424167
610864581
611881523
609585386... (3 Replies)
i am reading and writing to a a file in C language. the input file is described as follows
111 aaa descr1
222 bbb descr2
333 ccc <SPACE> {6 spaces are left after ccc i.e in 3rd column}
444 ddd descr4
when i read and write to a file, the space is not coming in the output file.... (8 Replies)
Hi Ravinder,
Could you (and anyone else who wants to help out) check this PHP code and confirm it does what I expect it to do, which is to color a badge based on the weeks a member is active in the latest sequence? I did a cut-paste-change from my "days in sequence" PHP prototype script and it... (6 Replies)