1Imager::Color::Table(3)User Contributed Perl DocumentatioInmager::Color::Table(3)
2
3
4
6 Imager::Color::Table - built-in Imager color table
7
9 use Imager::Color::Table;
10 my @rgb = Imager::Color::Table->get($name)
11 or die "Color $name not found";
12
14 This class provides a base color table for use in resolving color
15 names.
16
17 The table contains the standard X11 "rgb.txt" colors.
18
19 This table is not included as part of Imager::Color itself since it's
20 moderately large.
21
22 There is only one method:
23
24 get
25 my @rgb = Imager::Color::Table->get('red')
26 or die "No red found";
27
28 Retrieves a color from Imager::Color::Tables built-in color table.
29
31 Tony Cook <tony@develop-help.com>
32
33
34
35perl v5.32.1 2021-01-27 Imager::Color::Table(3)