Convert::Color::HSV(3pm) User Contributed Perl Documentation Convert::Color::HSV(3pm)NAME
"Convert::Color::HSV" - a color value represented as hue/saturation/value
SYNOPSIS
Directly:
use Convert::Color::HSV;
my $red = Convert::Color::HSV->new( 0, 1, 1 );
# Can also parse strings
my $pink = Convert::Color::HSV->new( '0,0.7,1' );
Via Convert::Color:
use Convert::Color;
my $cyan = Convert::Color->new( 'hsv:300,1,1' );
DESCRIPTION
Objects in this class represent a color in HSV space, as a set of three floating-point values. Hue is stored as a value in degrees, in the
range 0 to 360 (exclusive). Saturation and value are in the range 0 to 1.
CONSTRUCTOR
$color = Convert::Color::HSV->new( $hue, $saturation, $value )
Returns a new object to represent the set of values given. The hue should be in the range 0 to 360 (exclusive), and saturation and value
should be between 0 and 1. Values outside of these ranges will be clamped.
$color = Convert::Color::HSV->new( $string )
Parses $string for values, and construct a new object similar to the above three-argument form. The string should be in the form
hue,saturation,value
containing the three floating-point values in decimal notation.
METHODS
$h = $color->hue
$s = $color->saturation
$v = $color->value
Accessors for the three components of the color.
( $hue, $saturation, $value ) = $color->hsv
Returns the individual hue, saturation and value components of the color value.
SEE ALSO
o Convert::Color - color space conversions
o Convert::Color::RGB - a color value represented as red/green/blue
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.12.3 2011-06-15 Convert::Color::HSV(3pm)
Check Out this Related Man Page
Convert::Color::CMY(3pm) User Contributed Perl Documentation Convert::Color::CMY(3pm)NAME
"Convert::Color::CMY" - a color value represented as cyan/magenta/yellow
SYNOPSIS
Directly:
use Convert::Color::CMY;
my $red = Convert::Color::CMY->new( 0, 1, 1 );
# Can also parse strings
my $pink = Convert::Color::CMY->new( '0,0.3,0.3' );
Via Convert::Color:
use Convert::Color;
my $cyan = Convert::Color->new( 'cmy:1,0,0' );
DESCRIPTION
Objects in this class represent a color in CMY space, as a set of three floating-point values in the range 0 to 1.
CONSTRUCTOR
$color = Convert::Color::CMY->new( $cyan, $magenta, $yellow )
Returns a new object to represent the set of values given. These values should be floating-point numbers between 0 and 1. Values outside of
this range will be clamped.
$color = Convert::Color::CMY->new( $string )
Parses $string for values, and construct a new object similar to the above three-argument form. The string should be in the form
cyan,magenta,yellow
containing the three floating-point values in decimal notation.
METHODS
$c = $color->cyan
$m = $color->magenta
$y = $color->yellow
Accessors for the three components of the color.
( $cyan, $magenta, $yellow ) = $color->cmy
Returns the individual cyan, magenta and yellow color components of the color value.
SEE ALSO
o Convert::Color - color space conversions
o Convert::Color::RGB - a color value represented as red/green/blue
o Convert::Color::CMYK - a color value represented as cyan/magenta/yellow/key
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.12.3 2011-06-15 Convert::Color::CMY(3pm)
FBSD 4.6
How do I colorize my konsole to see directories etc. Am able to get color in the shell with ls -GF in my .bashrc. But color does not show in KDE3 Konsole (Xwindows) for some reason.FBSD 4.6 (1 Reply)
Hi,
Need urgent help.
I want to use this module Convert::IBM390 but we dont have admin rights on our Unix box so can't login as root.
Is there any other way where we can use this module or can it be converted to a program.
Please help. (1 Reply)
Hey everyone,
I have come across an issue to where I am trying to create a script which changes the text color with a simple if then statement. I have seen it done with Fedora 8 but when I try and create it using my MacBook Pro running Snow Leopard it doesn't work. Funny thing is, when I use... (2 Replies)
I need a bash script that will.
So here is what I made so far.
1. Convert video files to iPhone format
2. MV converted video to new directory (with domain.com attached to it)
4. Copy a NFO file (from another directory) and add some conversion information
5. Delete old directory
torrent... (6 Replies)
wondering if anyone has any thoughts to convert the below thru a shell script
Convert decimal signalling point notation to ANSI point code notation
There is a site that does that conversion but i need to implement the solution in a shell script.....Thoughts....
OS: Solaris 9
... (4 Replies)
Hi,
Im programming an interactive menu that verifies the exports of my oracle DB, and im having some trouble finding a process that outputs for example a green command line when the export terminated successfully. i have something like this
cat... (15 Replies)
Daily Stupid Question:
When I use a cat with a grep I can see "blind SQL injection vulnerablity" highlighted as red and is easily readable
cat file |grep -i 'blind\ SQL\ injection\ vulnerability'
When I add a more to view the results page at a time, the color is taken away and is... (3 Replies)
Hi all,
Did a couple of Google searchs, a couple of searchs on the site here and didn't find an answer... But, maybe I'm not searching for the right phrases.
My question; what creates the full color menus on the command line in unix?
I'm looking for something that would replicate the... (3 Replies)
Hi,
I have been working in India since past 13 years and as per Indian IT culture, there will be saturation in Salary which barely matches with rising living costs in India.
I am thinking to move/work in some other country for few years at least which help me financially plus technically. As of... (3 Replies)
Hi All,
Hope you are doing Great!!!.
Today i have came up with a problem to say exactly it was for performance improvement.
I have written code in perl as a solution for this to cut in specific range, but it is taking time to run for files thousands of lines so i am expecting
a sed... (9 Replies)