| Graphics-Color documentation | view source | Contained in the Graphics-Color distribution. |
Graphics::Color::YIQ - YIQ color space
Graphics::Color::YIQ represents a Color in an YIQ color space.
I couldn't find clear information on the bounds of each value, so at the moment there are none.
use Graphics::Color::YIQ;
my $color = Graphics::Color::YIQ->new({
luminance => 0.5,
in_phase => .5
quadrature => .25,
});
Creates a new Graphics::Color::YIQ.
Compares this color to the provided one. Returns 1 if true, else 0;
The opposite of equal_to.
Set/Get the luminance component of this Color.
Set/Get the in_phase component of this Color.
Set/Get the quadrature component of this Color.
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 LUMINANCE,IN-PHASE,QUADRATURE
Get the YIQ values as an array
Cory Watson, <gphat@cpan.org>
perl(1), http://en.wikipedia.org/wiki/YIQ
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. |