| Graphics-Color documentation | view source | Contained in the Graphics-Color distribution. |
Graphics::Color::YUV - YUV color space
Graphics::Color::YUV represents a Color in an Y'UV color space.
use Graphics::Color::YUV;
my $color = Graphics::Color::YUV->new({
luma => .5,
blue_luminance => .5
red_luminance => .25,
});
Creates a new Graphics::Color::YUV.
Compares this color to the provided one. Returns 1 if true, else 0;
The opposite of equal_to.
Set/Get the luma (Y') component of this Color. Aliased to y.
Set/Get the blue_luminance component of this Color. Aliased to u.
Set/Get the red_luminance component of this Color. Aliased to v.
Get the name of this color. Only valid if the color was created by name.
Get a string version of this Color in the form of LUMA,BLUE_LUMINENCE,RED_LUMINANCE
Get the YUV values as an array
Cory Watson, <gphat@cpan.org>
perl(1), http://en.wikipedia.org/wiki/YUV
Copyright 2008 - 2009 by Cory G Watson
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Graphics-Color documentation | view source | Contained in the Graphics-Color distribution. |