Graphi...r::YIQ(3pm)

πŸ“¦
version 0.31 Β· 2 versions
  • 0.31 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.31 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Graphics::Color::YIQ πŸ’–

okay so bestie, welcome to Graphics::Color::YIQ β€” it's a Perl module from the User Contributed Perl Documentation collection, and it's literally just here to represent a Color in a YIQ color space. that's it. that's the vibe. 🌈

VERSION β€” we're on version 0.31, no cap.


✨ SYNOPSIS ✨

here's how you actually use this thing, copy-paste coded for your convenience:

use Graphics::Color::YIQ;

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

look at her. she's beautiful. πŸŽ€


🌸 DESCRIPTION 🌸

Graphics::Color::YIQ represents a Color in an YIQ color space. that's the whole assignment and she ate. πŸ’…


πŸ’€ DISCLAIMER πŸ’€

okay so this is the part where I have to be honest with you: I couldn't find clear information on the bounds of each value, so at the moment there are none. no guardrails, no limits, no vibe check. you're on your own out here fr fr. 😭


πŸ‘‘ ATTRIBUTES πŸ‘‘

luminance

y

Set/Get the luminance component of this Color. (same thing as y, bestie β€” two names, one icon 🫢)

in_phase

i

Set/Get the in_phase component of this Color. (also answers to i, iykyk)

quadrature

q

Set/Get the quadrature component of this Color. (and yeah, q works too)

name

Get the name of this color. ⚠️ Only valid if the color was created by name. like, don't come for her if you made her a different way, she will not know. πŸ™ˆ

not_equal_to

The opposite of equal_to. that's it. that's the whole description. lowkey iconic for how little it says. πŸ’œ


🧚 METHODS 🧚

as_string

Get a string version of this Color, and it comes out 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> β€” thank you king, we appreciate you. 🫢


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. slay, open source rights. ✨


and that's the whole page bestie, no notes, she's short and she knows it πŸ’…

k byeeee β€” this was Graphi...r::YIQ(3pm) from perl v5.34.0, dated 2022-06-14. mwah. πŸ’–

πŸ“¦ where this page comes from