Convert::Color::CMYK(3pm) User Contributed Perl Documentation Convert::Color::CMYK(3pm)NAME
"Convert::Color::CMYK" - a color value represented as cyan/magenta/yellow/key
SYNOPSIS
Directly:
use Convert::Color::CMYK;
my $red = Convert::Color::CMYK->new( 0, 1, 1, 0 );
# Can also parse strings
my $pink = Convert::Color::CMYK->new( '0,0.3,0.3,0' );
Via Convert::Color:
use Convert::Color;
my $cyan = Convert::Color->new( 'cmyk:1,0,0,0' );
DESCRIPTION
Objects in this class represent a color in CMYK space, as a set of four floating-point values in the range 0 to 1.
CONSTRUCTOR
$color = Convert::Color::CMYK->new( $cyan, $magenta, $yellow, $key )
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::CMYK->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,key
containing the three floating-point values in decimal notation.
METHODS
$c = $color->cyan
$m = $color->magenta
$y = $color->yellow
$k = $color->key
Accessors for the four components of the color.
$k = $color->black
An alias to "key"
( $cyan, $magenta, $yellow, $key ) = $color->cmyk
Returns the individual cyan, magenta, yellow and key components of the color value.
SEE ALSO
o Convert::Color - color space conversions
o Convert::Color::CMY - a color value represented as cyan/magenta/yellow
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.12.3 2011-06-15 Convert::Color::CMYK(3pm)
Check Out this Related Man Page
Convert::Color::HSL(3pm) User Contributed Perl Documentation Convert::Color::HSL(3pm)NAME
"Convert::Color::HSL" - a color value represented as hue/saturation/lightness
SYNOPSIS
Directly:
use Convert::Color::HSL;
my $red = Convert::Color::HSL->new( 0, 1, 0.5 );
# Can also parse strings
my $pink = Convert::Color::HSL->new( '0,1,0.8' );
Via Convert::Color:
use Convert::Color;
my $cyan = Convert::Color->new( 'hsl:300,1,0.5' );
DESCRIPTION
Objects in this class represent a color in HSL 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 lightness are in the range 0 to 1.
CONSTRUCTOR
$color = Convert::Color::HSL->new( $hue, $saturation, $lightness )
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
lightness should be between 0 and 1. Values outside of these ranges will be clamped.
$color = Convert::Color::HSL->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,lightnes
containing the three floating-point values in decimal notation.
METHODS
$h = $color->hue
$s = $color->saturation
$v = $color->lightness
Accessors for the three components of the color.
( $hue, $saturation, $lightness ) = $color->hsl
Returns the individual hue, saturation and lightness 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::HSL(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 All.
How can I change the color of my cusor in sun solaris 8 permanently ? Right now my cursor color is yellow. I want black.
Please reply me soon.
Thanks
Pankaj Verma. (3 Replies)
Ex :-
file.txt
<fruits>
<apple>redcolor<\apple>
<banana>yellow color and it is<\banana>
</fruits>
i have a number of files in my directory in above fashion.
i am searching for perticular data between the tags using this command
nawk -F">" '{print $2}' *.txt | nawk -F"<" '{print... (4 Replies)
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)
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 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)
I have a script which converts a .csv file to html nicely. Trying to add 3 colors, green, yellow and red to the output depending upon the values in the cells. Tried some printf command but just can't seem to get any where. Any ideas would be appreciated. nawk 'BEGIN{
FS=","
print ... (7 Replies)
Hey guys. Below is the command I am using to assign "yellow" to the variable yellow. I can seem to echo it out using xargs but when I assign it to yellow and then try to echo it out it prints a blank line.
Below is the command. Your help is highly appreciated!
cut -c 2- color.txt |... (11 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)