Imager::Handy(3pm)

🌸 NAME 🌸

okay so this is Imager::Handy(3pm), straight from the User Contributed Perl Documentation section πŸ’– It's literally simple access to common functions β€” shortcut queen energy, no cap. πŸ’…

✨ SYNOPSIS ✨

use Imager ':handy';
my $color = NC(255, 0, 0);
my $font = NF(1.0, 0, 0);

πŸ¦‹ DESCRIPTION πŸ¦‹

If you use Imager with the :handy import tag, it will export a number of functions that can shorter your code 😭✨ yes bestie, that's the wording β€” we keep the facts, not the grammar.

πŸ’– NC(), newcolor(), newcolour() πŸ’–

Create a new Imager::Color object, supplying any parameters to the new() method. slay πŸŽ€

my $color = NC('red');

🌈 NF(), newfont() 🌈

Create a new Imager::Font object, supplying any parameters to the new() method. font bestie behavior πŸ¦‹

my $font = NF(file => 'foo.ttf');

⭐ NCF() ⭐

Create a new Imager::Color::Float object, supplying any parameters to the new() method. floaty color moment ✨

my $colorf = NCF(1.0, 0, 0);

πŸ’€ BUGS πŸ’€

NC() can be mostly replaced by supplying the color name or other description directly to the drawing method. Keyword: mostly πŸ‘€ β€” that's the whole bug note, bestie.

πŸ‘‘ AUTHOR πŸ‘‘

Tony Cook <tonyc@cpan.org> β€” iconic, accredited, periodt. 🫢


k bye bestie πŸ’– this page is from perl v5.42.3, dated 2026-08-19 β€” stay handy and slay your code βœ¨πŸ’…

πŸ“¦ where this page comes from