Graphi...r::YUV(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

πŸ’– NAME πŸ’–

okay bestie, so Graphics::Color::YUV is a whole module that does one thing and does it cute: it's the YUV color space ✨. That's it. That's the vibe. It's the Perl module living its main character life inside the User Contributed Perl Documentation, and honestly? iconic.


🌈 VERSION 🌈

we are on version 0.31, no cap πŸŽ€


✨ SYNOPSIS ✨

here's how you actually use it, bestie, copy-paste away:

use Graphics::Color::YUV;

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

look at her go πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, Graphics::Color::YUV represents a Color in an Y'UV color space. that's the whole assignment and she ate, fr fr 🫢


🌸 ATTRIBUTES 🌸

πŸŽ€ luma / y

Set/Get the luma (Y') component of this Color. It's aliased to y β€” same thing, two doors, one room πŸ’«

πŸŽ€ blue_luminance / u

Set/Get the blue_luminance component of this Color. Aliased to u. yes queen, they're the same attribute 🌊

πŸŽ€ red_luminance / v

Set/Get the red_luminance component of this Color. Aliased to v. twin flames, truly πŸ’œ


⭐ METHODS ⭐

πŸ’… name

Get the name of this color. Only valid if the color was created by name. like, if you didn't make her by name, don't ask her for one, that's so awkward 😭

πŸ’… as_string

Get a string version of this Color, and it comes out looking exactly like:

LUMA,BLUE_LUMINENCE,RED_LUMINANCE

(and yes, that's the real spelling in the format β€” BLUE_LUMINENCE β€” we don't make the rules, we just report them πŸ“)

πŸ’… as_array

Get the YUV values as an array πŸ“‹

πŸ’… equal_to

Compares this color to the provided one. Returns 1 if true, else 0. simple as that.

πŸ’… not_equal_to

The opposite of equal_to. the hater of equal_to. the anti-equal_to, if you will πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Cory G Watson <gphat@cpan.org> β€” thank you for your service, king 🫑


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. so like, go off, remix it, it's giving generous πŸ’


🌟 cute little sign-off time: this page was generated by perl v5.34.0 on 2022-06-14, and it documents Graphi...r::YUV(3pm) in the User Contributed Perl Documentation. stay hydrated, read your man pages, and remember β€” YUV is just a color space, bestie, you've got this πŸ’œβœ¨πŸŒˆ
πŸ“¦ where this page comes from