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::YUV - YUV color space

Attributes

lumay
       Set/Get the luma (Y') component of this Color.  Aliased to y.

   blue_luminanceu
       Set/Get the blue_luminance component of this Color. Aliased to u.

   red_luminancev
       Set/Get the red_luminance component of this Color. Aliased to v.

Author

       Cory G Watson <gphat@cpan.org>

Description

       Graphics::Color::YUV represents a Color in an Y'UV color space.

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.

Name

       Graphics::Color::YUV - YUV color space

Synopsis

           use Graphics::Color::YUV;

           my $color = Graphics::Color::YUV->new({
               luma            => .5,
               blue_luminance  => .5,
               red_luminance   => .25,
           });

Version

       version 0.31

See Also