logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Graphics::Color::YIQ - YIQ color space

Attributes

luminancey
       Set/Get the luminance component of this Color.

   in_phasei
       Set/Get the in_phase component of this Color.

   quadratureq
       Set/Get the quadrature component of this Color.

   name
       Get the name of this color.  Only valid if the color was created by name.

   not_equal_to
       The opposite of equal_to.

Author

       Cory G Watson <gphat@cpan.org>

Description

       Graphics::Color::YIQ represents a Color in an YIQ color space.

Disclaimer

       I couldn't find clear information on the bounds of each value, so at the moment there are none.

Methods

as_string
       Get a string version of this Color in the form of LUMINANCE,IN-PHASE,QUADRATURE

   as_array
       Get the YIQ values as an array

   equal_to
       Compares this color to the provided one.  Returns 1 if true, else 0;

Name

       Graphics::Color::YIQ - YIQ color space

Synopsis

           use Graphics::Color::YIQ;

           my $color = Graphics::Color::YIQ->new({
               luminance   => 0.5,
               in_phase    => .5,
               quadrature  => .25,
           });

Version

       version 0.31

See Also