Graphics::Color::YUV(3pm) User Contributed Perl Documentation Graphics::Color::YUV(3pm)NAME
Graphics::Color::YUV - YUV color space
VERSION
version 0.29
SYNOPSIS
use Graphics::Color::YUV;
my $color = Graphics::Color::YUV->new({
luma => .5,
blue_luminance => .5,
red_luminance => .25,
});
DESCRIPTION
Graphics::Color::YUV represents a Color in an Y'UV color space.
ATTRIBUTES
luma
y
Set/Get the luma (Y') component of this Color. Aliased to y.
blue_luminance
u
Set/Get the blue_luminance component of this Color. Aliased to u.
red_luminance
v
Set/Get the red_luminance component of this Color. Aliased to v.
METHODS
name
Get the name of this color. Only valid if the color was created by name.
as_string
Get a string version of this Color in the form of: LUMA,BLUE_LUMINENCE,RED_LUMINANCE
as_array
Get the YUV 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::YUV(3pm)
Check Out this Related Man Page
Graphics::Color(3pm) User Contributed Perl Documentation Graphics::Color(3pm)NAME
Graphics::Color - Device and library agnostic color spaces.
VERSION
version 0.29
SYNOPSIS
my $color = Graphics::Color::RGB->new(
red => .5, green => .5, blue => .5, alpha => .5
);
say $color->as_string;
DESCRIPTION
Graphics color is a device and library agnostic system for creating and manipulating colors in various color spaces.
DISCLAIMER
I'm not an art student or a wizard of arcane color knowledge. I'm a normal programmer with a penchant for things graphical. Hence this
module is likely incomplete in some places. Patches are encouraged. I've intentions of adding more color spaces as well as conversion
routines (where applicable).
COLOR TYPES
The following color types are supported.
CMYK
HSL
HSV
RGB
YIQ
YUV
METHODS
derive
Clone this color but allow one of more of it's attributes to change by passing in a hashref of options:
my $new = $color->derive({ attr => $newvalue });
The returned color will be identical to the cloned one, save the attributes specified.
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(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)
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)
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)