---
name: "Graphics::Color::YUV"
section: "3pm"
platform: "linux"
package: "libgraphics-color-perl"
version: "0.31-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Graphics::Color::YUV"
---

# Graphics::Color::YUV(3pm)

YUV color space

## NAME

Graphics::Color::YUV - YUV color space

## VERSION

version 0.31

## 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) 2014 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.
