Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

convert::color::cmyk(3pm) [debian 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)

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)
Man Page

11 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Color konsole in FBSD 4.6

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)
Discussion started by: lancest
1 Replies

2. Solaris

cursor color[urgent]

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)
Discussion started by: pankaj verma
3 Replies

3. Shell Programming and Scripting

how can i get the file name in which i found the data

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)
Discussion started by: pvr_satya
4 Replies

4. OS X (Apple)

Adding Color to bash

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)
Discussion started by: dachadster13
2 Replies

5. Shell Programming and Scripting

Convert date

If I pass the value in the form YYYY/MM/DD(20100719) how to convert in the form 19\/Jul\/2010 (1 Reply)
Discussion started by: sandy1028
1 Replies

6. Shell Programming and Scripting

Convert decimal notation to ANSI point code notation

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)
Discussion started by: aavam
4 Replies

7. UNIX for Dummies Questions & Answers

Full Color Command Line Menus

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)
Discussion started by: jtollefson
3 Replies

8. Shell Programming and Scripting

Add Color To html Doc

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)
Discussion started by: jimmyf
7 Replies

9. Shell Programming and Scripting

How to assign value to variable using cut?

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)
Discussion started by: eldan88
11 Replies

10. UNIX for Dummies Questions & Answers

Convert Overpunch character values to number that comes between the numbers in perl

(18 Replies)
Discussion started by: nadeemrafikhan
18 Replies

11. Shell Programming and Scripting

Convert fixed value fields to comma separated values

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)
Discussion started by: mad man
9 Replies