Graphics::Color::CMYK(3pm) User Contributed Perl Documentation Graphics::Color::CMYK(3pm)NAME
Graphics::Color::CMYK - CMYK color model
VERSION
version 0.29
SYNOPSIS
use Graphics::Color::CMYK;
my $color = Graphics::Color::CMYK->new({
cyan => 120,
magenta => .5,
yellow => .25,
key => .5
});
DESCRIPTION
Graphics::Color::CMYK represents a Color in CMYK color model. Cyan stands for Cyan Magenta Yellow Key (or black).
ATTRIBUTES
cyan
c
Set/Get the cyan component of this Color.
magenta
m
Set/Get the magenta component of this Color.
yellow
y
Set/Get the yellow component of this Color.
key
k
Set/Get the key (black) 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:
CYAN,MAGENTA,YELLOW,KEY
as_percent_string
Return a percent formatted value for this color.
as_array
Get the CMYK 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".
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::CMYK(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)
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)
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)
I've recently 'upgraded' my Mac Pro to Leopard and in the process have killed a major piece of cross platform software (IDL) that I use in my work. Apparently, Leopard has disabled 256 color compatibility, while simultaneously leaving the option as ghosted teaser on the displays panel of system... (1 Reply)
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)
Jan 18, 2010 14:15:31 GMT Hello,
I get horizontal black lines after each line of text and every blank line is colored black.
I am using HP Color LaserJet... (5 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)
I have a file File1 containing lines like below
apple ${FRUIT}-Color
orange ${FRUIT}-Color
banana ${FRUIT}-Color
Now, in my shell I'm reading the file like below
while read FRUIT DESC; do echo $FRUIT $DESC; done < File1
which outputs -
apple ${FRUIT}-Color
orange ${FRUIT}-Color... (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 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)