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)
Check Out this Related Man Page
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)
Hi,
I have a comma seperated list of values:
export list="red,blue,white,yellow"
Given a value in a variable "look", i want to check whether the value is available in the above list. But the result should be based on exact string match and not part of the string.
I am using following... (9 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)
Hi all,
I am really new to UNIX ..and can any1 help me on change the yellow color to blur color (folder) ? Please refer to the attached pictures ..
Your help is really appreciated .. :) Have a nice day ! (5 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)
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,
I'd like to take a list of numbers (with a prefix) and convert to a range, for example:
cn001
cn004
cn016
cn017
cn018
cn019
cn020
cn021
cn031
cn032
cn038
cn042
cn043
cn044
cn045 (5 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)
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)