Imager::Color::Table - built-in Imager color table
use Imager::Color::Table; my @rgb = Imager::Color::Table->get($name) or die "Color $name not found";
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:
my @rgb = Imager::Color::Table->get('red') or die "No red found";
Retrieves a color from Imager::Color::Tables built-in color table.
Tony Cook <tony@develop-help.com>
To install Imager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager
CPAN shell
perl -MCPAN -e shell install Imager
For more information on module installation, please visit the detailed CPAN module installation guide.