---
name: "Graphics::Color::YIQ"
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::YIQ"
---

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

YIQ color space

## NAME

Graphics::Color::YIQ - YIQ color space

## VERSION

version 0.31

## SYNOPSIS

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

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

## ATTRIBUTES

### luminance

### y

Set/Get the luminance component of this Color.

### in\_phase

### i

Set/Get the in\_phase component of this Color.

### quadrature

### q

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.

## 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;

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