Imager...:Table(3pm)
π NAME π
Imager::Color::Table β the built-in Imager color table, bestie. That's it, that's the whole vibe. π
(This lil page comes to you straight from the User Contributed Perl Documentation section β Imager::Color::Table(3pm), if you're being formal about it.)
β¨ SYNOPSIS β¨
use Imager::Color::Table;
my @rgb = Imager::Color::Table->get($name)
or die "Color $name not found";
π¦ DESCRIPTION π¦
Okay so picture this: this class hands you a base color table for resolving color names. That's literally her whole job and she does it flawlessly. π
The table is packed with the standard X11 "rgb.txt" colors. All of them. The whole squad. π
And why isn't this just chilling inside Imager::Color itself? Because it's moderately large, and nobody wanted to carry that around everywhere they go. So it lives here, in its own lil home. Not me making good architecture decisions π
There is only one method and she's the main character:
β get β
my @rgb = Imager::Color::Table->get('red')
or die "No red found";
Retrieves a color from Imager::Color::Tables built-in color table. You hand her a name, she hands you the rgb. Iconic behavior, truly. π«Ά
π AUTHOR π
Tony Cook <tony@develop-help.com>
And that's the page, bestie! β¨ This one shipped out with perl v5.42.3, dated 2026-08-19 β go forth and resolve those color names, ily π¦π
π¦ 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