Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

Check Out this Related Man Page

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

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Comma Seperated List of Values

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

2. 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

3. Shell Programming and Scripting

How to compare 2 files.

Hi, I want to compare 2 files as below file1: -------- yellow:sure blue:567 red:75843kjsad file2: -------- yellow:sujji blue:summi orange:girri red:akash white:alias Output: --------- (6 Replies)
Discussion started by: ashoka123
6 Replies

4. Solaris

How to change folder color in terminal ?

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

5. Shell Programming and Scripting

Automated FFmpeg Convert Bash Script

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)
Discussion started by: domz
6 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. Shell Programming and Scripting

Assign specific Color to the outputs in script

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

8. 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

9. 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

10. 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

11. 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

12. Shell Programming and Scripting

Convert list of numbers to text range

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

13. 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

14. Web Development

Color a Badge Based on the Weeks the Member is Active in the Latest Sequence

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