File Coverage

blib/lib/Graphics/ColorNames/FoodColor.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 15 80.0


line stmt bran cond sub pod time code
1             package Graphics::ColorNames::FoodColor;
2              
3 1     1   330841 use strict;
  1         3  
  1         50  
4 1     1   8 use warnings;
  1         3  
  1         181  
5              
6             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
7             our $DATE = '2023-12-05'; # DATE
8             our $DIST = 'Graphics-ColorNames-FoodColor'; # DIST
9             our $VERSION = '0.002'; # VERSION
10              
11             sub NamesRgbTable() {
12 1     1   739 use integer;
  1         20  
  1         6  
13             return {
14 0     0 0   allura_red => 0xff0000,
15             ci_16035 => 0xff0000,
16             fdc_red_40 => 0xff0000,
17             ci_food_red_17 => 0xff0000,
18             e129 => 0xff0000,
19              
20             amaranth => 0x993366,
21             ci_16185 => 0x993366,
22             fdc_red_2 => 0x993366,
23             ci_food_red_9 => 0x993366,
24             e123 => 0x993366,
25              
26             black_pn => 0x660033,
27             ci_food_black_1 => 0x660033,
28             ci_28440 => 0x660033,
29             e151 => 0x660033,
30              
31             brilliant_blue_fcf => 0x0000ff,
32             ci_42090 => 0x0000ff,
33             fdc_blue_1 => 0x0000ff,
34             ci_food_blue_2 => 0x0000ff,
35             e133 => 0x0000ff,
36              
37             carmoisine => 0xcc3300,
38             ci_14720 => 0xcc3300,
39             ci_food_red_3 => 0xcc3300,
40             azorubine => 0xcc3300,
41             e122 => 0xcc3300,
42              
43             chocolate_brown_ht => 0x996600,
44             ci_20285 => 0x996600,
45             ci_food_brown_3 => 0x996600,
46             e155 => 0x996600,
47              
48             erythrosine => 0xff0080,
49             ci_45430 => 0xff0080,
50             fdc_red_3 => 0xff0080,
51             ci_food_red_14 => 0xff0080,
52             e127 => 0xff0080,
53              
54             fast_green_fcf => 0x99ff33,
55             ci_42053 => 0x99ff33,
56             fdc_green_3 => 0x99ff33,
57             ci_food_green_3 => 0x99ff33,
58              
59             fast_red_e => 0xcc3300,
60             ci_16045 => 0xcc3300,
61             ci_food_red_4 => 0xcc3300,
62              
63             green_s => 0x008000,
64             ci_44090 => 0x008000,
65             ci_food_green_4 => 0x008000,
66             e142 => 0x008000,
67              
68             indigo_carmine => 0x666699,
69             ci_73015 => 0x666699,
70             fdc_blue_2 => 0x666699,
71             ci_food_blue_1 => 0x666699,
72             e132 => 0x666699,
73              
74             patent_blue_v => 0x9999ff,
75             ci_42051 => 0x9999ff,
76             ci_food_blue_5 => 0x9999ff,
77             e131 => 0x9999ff,
78              
79             ponceau_4r => 0xff0000,
80             ci_16255 => 0xff0000,
81             ci_food_red_7 => 0xff0000,
82             e124 => 0xff0000,
83              
84             quinoline_yellow => 0xffff00,
85             ci_47005 => 0xffff00,
86             dc_yellow_10 => 0xffff00,
87             ci_food_yellow_13 => 0xffff00,
88             e104 => 0xffff00,
89              
90             red_2g => 0xff3300,
91             ci_18050 => 0xff3300,
92             ci_food_red_10 => 0xff3300,
93             e128 => 0xff3300,
94              
95             sunset_yellow_fcf => 0xf7fe6d,
96             ci_15985 => 0xf7fe6d,
97             fdc_yellow_6 => 0xf7fe6d,
98             ci_food_yellow_3 => 0xf7fe6d,
99             e110 => 0xf7fe6d,
100              
101             tartrazine => 0xffcc66,
102             ci_19140 => 0xffcc66,
103             fdc_yellow_5 => 0xffcc66,
104             ci_food_yellow_4 => 0xffcc66,
105             e102 => 0xffcc66,
106             };
107             }
108              
109             1;
110             # ABSTRACT: Food colors
111              
112             __END__