logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Imager::Color::Table - built-in Imager color table

Author

       Tony Cook <tony@develop-help.com>

perl v5.40.1                                       2025-03-16                          Imager::Color::Table(3pm)

Description

       This class provides a base color table for use in resolving color names.

       The table contains the standard X11 "rgb.txt" colors.

       This table is not included as part of Imager::Color itself since it's moderately large.

       There is only one method:

       get
             my @rgb = Imager::Color::Table->get('red')
               or die "No red found";

           Retrieves a color from Imager::Color::Tables built-in color table.

Name

       Imager::Color::Table - built-in Imager color table

Synopsis

         use Imager::Color::Table;
         my @rgb = Imager::Color::Table->get($name)
           or die "Color $name not found";

return

See Also