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
- ubuntu stonking: libimager-perl 1.035+dfsg-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms