File Coverage

blib/lib/Graphics/ColorNames/Mozilla.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 14 15 93.3


line stmt bran cond sub pod time code
1             package Graphics::ColorNames::Mozilla;
2             # $Id: Mozilla.pm,v 0.11 2002/05/24 16:01:36 steve Exp steve $
3             #
4             # $Log: Mozilla.pm,v $
5             # Revision 0.11 2002/05/24 16:01:36 steve
6             # added dependancy on Graphics::ColorNames
7             #
8             # Revision 0.10 2002/04/14 21:13:50 steve
9             # initial release
10             #
11              
12             =head1 NAME
13              
14             Graphics::ColorNames::Mozilla - Mozilla, Netscape 6.0, Galeon
15             (anything using Gecko) color names and equivalent RGB values
16              
17             =head1 SYNOPSIS
18              
19             require Graphics::ColorNames::Mozilla;
20              
21             $NameTable = Graphics::ColorNames::Mozilla->NamesRgbTable();
22             $RgbSkyBlue = $NameTable->{deepskyblue};
23              
24             =head1 DESCRIPTION
25              
26             This module defines color names and their associated RGB values used in
27             Mozilla and Netscape 6.0. Names and values were slurped off of
28             http://developer.netscape.com/docs/manuals/js/client/jsref/colors.htm
29              
30             =head1 SEE ALSO
31              
32             C - more sets of color names and routines for
33             converting between tuples and hex representation of colors.
34              
35             mozilla source tree: /mozilla/layout/tools/ColorNames.txt
36              
37             =head1 AUTHOR
38              
39             Steve Pomeroy
40              
41             Robert Rothenberg -- the origional C
42              
43             =head1 LICENSE
44              
45             Copyright (c) 2002 Steve Pomeroy. All rights reserved. This program is
46             free software; you can redistribute it and/or modify it under the same
47             terms as Perl itself.
48              
49             =cut
50              
51             require 5.005;
52 1     1   10605 use strict;
  1         4  
  1         32  
53             # use warnings;
54              
55 1     1   5 use vars qw( $VERSION );
  1         2  
  1         53  
56              
57             $VERSION = '0.11';
58              
59             sub NamesRgbTable() {
60 1     1   1440 use integer;
  1         17  
  1         6  
61             return {
62            
63 1     1 0 682 "aliceblue" => 0xF0F8FF,
64             "antiquewhite" => 0xFAEBD7,
65             "aqua" => 0x00FFFF,
66             "aquamarine" => 0x7FFFD4,
67             "azure" => 0xF0FFFF,
68             "beige" => 0xF5F5DC,
69             "bisque" => 0xFFE4C4,
70             "black" => 0x000000,
71             "blanchedalmond" => 0xFFEBCD,
72             "blue" => 0x0000FF,
73             "blueviolet" => 0x8A2BE2,
74             "brown" => 0xA52A2A,
75             "burlywood" => 0xDEB887,
76             "cadetblue" => 0x5F9EA0,
77             "chartreuse" => 0x7FFF00,
78             "chocolate" => 0xD2691E,
79             "coral" => 0xFF7F50,
80             "cornflowerblue" => 0x6495ED,
81             "cornsilk" => 0xFFF8DC,
82             "crimson" => 0xDC143C,
83             "cyan" => 0x00FFFF,
84             "darkblue" => 0x00008B,
85             "darkcyan" => 0x008B8B,
86             "darkgoldenrod" => 0xB8860B,
87             "darkgray" => 0xA9A9A9,
88             "darkgreen" => 0x006400,
89             "darkgrey" => 0xA9A9A9,
90             "darkkhaki" => 0xBDB76B,
91             "darkmagenta" => 0x8B008B,
92             "darkolivegreen" => 0x556B2F,
93             "darkorange" => 0xFF8C00,
94             "darkorchid" => 0x9932CC,
95             "darkred" => 0x8B0000,
96             "darksalmon" => 0xE9967A,
97             "darkseagreen" => 0x8FBC8F,
98             "darkslateblue" => 0x483D8B,
99             "darkslategray" => 0x2F4F4F,
100             "darkslategrey" => 0x2F4F4F,
101             "darkturquoise" => 0x00CED1,
102             "darkviolet" => 0x9400D3,
103             "deeppink" => 0xFF1493,
104             "deepskyblue" => 0x00BFFF,
105             "dimgray" => 0x696969,
106             "dimgrey" => 0x696969,
107             "dodgerblue" => 0x1E90FF,
108             "firebrick" => 0xB22222,
109             "floralwhite" => 0xFFFAF0,
110             "forestgreen" => 0x228B22,
111             "fuchsia" => 0xFF00FF,
112             "gainsboro" => 0xDCDCDC,
113             "ghostwhite" => 0xF8F8FF,
114             "gold" => 0xFFD700,
115             "goldenrod" => 0xDAA520,
116             "gray" => 0x808080,
117             "grey" => 0x808080,
118             "green" => 0x008000,
119             "greenyellow" => 0xADFF2F,
120             "honeydew" => 0xF0FFF0,
121             "hotpink" => 0xFF69B4,
122             "indianred" => 0xCD5C5C,
123             "indigo" => 0x4B0082,
124             "ivory" => 0xFFFFF0,
125             "khaki" => 0xF0E68C,
126             "lavender" => 0xE6E6FA,
127             "lavenderblush" => 0xFFF0F5,
128             "lawngreen" => 0x7CFC00,
129             "lemonchiffon" => 0xFFFACD,
130             "lightblue" => 0xADD8E6,
131             "lightcoral" => 0xF08080,
132             "lightcyan" => 0xE0FFFF,
133             "lightgoldenrodyellow" => 0xFAFAD2,
134             "lightgreen" => 0x90EE90,
135             "lightgrey" => 0xD3D3D3,
136             "lightpink" => 0xFFB6C1,
137             "lightsalmon" => 0xFFA07A,
138             "lightseagreen" => 0x20B2AA,
139             "lightskyblue" => 0x87CEFA,
140             "lightslategray" => 0x778899,
141             "lightslategrey" => 0x778899,
142             "lightsteelblue" => 0xB0C4DE,
143             "lightyellow" => 0xFFFFE0,
144             "lime" => 0x00FF00,
145             "limegreen" => 0x32CD32,
146             "linen" => 0xFAF0E6,
147             "magenta" => 0xFF00FF,
148             "maroon" => 0x800000,
149             "mediumaquamarine" => 0x66CDAA,
150             "mediumblue" => 0x0000CD,
151             "mediumorchid" => 0xBA55D3,
152             "mediumpurple" => 0x9370DB,
153             "mediumseagreen" => 0x3CB371,
154             "mediumslateblue" => 0x7B68EE,
155             "mediumspringgreen" => 0x00FA9A,
156             "mediumturquoise" => 0x48D1CC,
157             "mediumvioletred" => 0xC71585,
158             "midnightblue" => 0x191970,
159             "mintcream" => 0xF5FFFA,
160             "mistyrose" => 0xFFE4E1,
161             "moccasin" => 0xFFE4B5,
162             "navajowhite" => 0xFFDEAD,
163             "navy" => 0x000080,
164             "oldlace" => 0xFDF5E6,
165             "olive" => 0x808000,
166             "olivedrab" => 0x6B8E23,
167             "orange" => 0xFFA500,
168             "orangered" => 0xFF4500,
169             "orchid" => 0xDA70D6,
170             "palegoldenrod" => 0xEEE8AA,
171             "palegreen" => 0x98FB98,
172             "paleturquoise" => 0xAFEEEE,
173             "palevioletred" => 0xDB7093,
174             "papayawhip" => 0xFFEFD5,
175             "peachpuff" => 0xFFDAB9,
176             "peru" => 0xCD853F,
177             "pink" => 0xFFC0CB,
178             "plum" => 0xDDA0DD,
179             "powderblue" => 0xB0E0E6,
180             "purple" => 0x800080,
181             "red" => 0xFF0000,
182             "rosybrown" => 0xBC8F8F,
183             "royalblue" => 0x4169E1,
184             "saddlebrown" => 0x8B4513,
185             "salmon" => 0xFA8072,
186             "sandybrown" => 0xF4A460,
187             "seagreen" => 0x2E8B57,
188             "seashell" => 0xFFF5EE,
189             "sienna" => 0xA0522D,
190             "silver" => 0xC0C0C0,
191             "skyblue" => 0x87CEEB,
192             "slateblue" => 0x6A5ACD,
193             "slategray" => 0x708090,
194             "slategrey" => 0x708090,
195             "snow" => 0xFFFAFA,
196             "springgreen" => 0x00FF7F,
197             "steelblue" => 0x4682B4,
198             "tan" => 0xD2B48C,
199             "teal" => 0x008080,
200             "thistle" => 0xD8BFD8,
201             "tomato" => 0xFF6347,
202             "turquoise" => 0x40E0D0,
203             "violet" => 0xEE82EE,
204             "wheat" => 0xF5DEB3,
205             "white" => 0xFFFFFF,
206             "whitesmoke" => 0xF5F5F5,
207             "yellow" => 0xFFFF00,
208             "yellowgreen" => 0x9ACD32,
209             };
210             }