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