summaryrefslogtreecommitdiff
path: root/lib/Graphics/ColorNames/Netscape.pm
blob: a694a83ae2efe13f4523101117b632b7ef6fe47d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
package Graphics::ColorNames::Netscape;

=head1 NAME

Graphics::ColorNames::Netscape - Netscape 1.1 Color Names

=head1 SYNOPSIS

  require Graphics::ColorNames::Netscape;

  $NameTable = Graphics::ColorNames::Netscape->NamesRgbTable();
  $RgbBlack  = $NameTable->{black};

=head1 DESCRIPTION

This module defines color names and their associated RGB values associated
with Netscape 1.1 (I cannot determine whether they were once usable in
Netscape or were arbitrary names for RGB values-- I<many of these names are
not recognized by later versions of Netscape>).

This scheme is deprecated, and will be removed from future versions of 
L<Graphics::ColorNames> but available as a separate module from CPAN.

=head1 SEE ALSO

L<Graphics::ColorNames>

L<Graphics::ColorNames::Mozilla>

L<Graphics::ColorNames::IE>

L<Graphics::ColorNames::SVG>

The color names come from L<http://wp.netscape.com/home/bg/colorindex.html>.
Corrections to errors in the Netscape spec are due to 
L<http://www.he.net/info/color/>.

=head1 AUTHOR

Robert Rothenberg <rrwo at cpan.org>

=head2 Acknowledgements

"Magnus", who pointed out inconsistencies.

Gary Vollink, who suggested color schemes for later Netscape versions,
and pointed out that the original Netscape page had moved.

=head1 LICENSE

Copyright (c) 2001-2008 Robert Rothenberg. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

=cut

use strict;
use warnings;

our $VERSION = '2.11';
#$VERSION = eval $VERSION;

# See http://home1.netscape.com/home/bg/colorindex.html

sub NamesRgbTable() {
  use integer;
  return {
    "white"               =>0xffffff,
    "red"                 =>0xff0000,
    "green"               =>0x00ff00,
    "blue"                =>0x0000ff,
    "magenta"             =>0xff00ff,
    "cyan"                =>0x00ffff,
    "yellow"              =>0xffff00,
    "black"               =>0x000000,
    "aquamarine"          =>0x70db93,
    "bakerschocolate"     =>0x5c3317,
    "blueviolet"          =>0x9f5f9f,
    "brass"               =>0xb5a642,
    "brightgold"          =>0xd9d919,
    "brown"               =>0xa62a2a,
    "bronze"              =>0x8c7853,
    "bronzeii"            =>0xa67d3d,
    "cadetblue"           =>0x5f9f9f,
    "coolcopper"          =>0xd98719,
    "copper"              =>0xb87333,
    "coral"               =>0xff7f00,
    "cornflowerblue"      =>0x42426f,
    "darkbrown"           =>0x5c4033,
    "darkgreen"           =>0x2f4f2f,
    "darkgreencopper"     =>0x4a766e,
    "darkolivegreen"      =>0x4f4f2f,
    "darkorchid"          =>0x9932cd,
    "darkpurple"          =>0x871f78,
    "darkslateblue"       =>0x241882,
    "darkslategrey"       =>0x2f4f4f,
    "darktan"             =>0x97694f,
    "darkturquoise"       =>0x7093db,
    "darkwood"            =>0x855e42,
    "dimgrey"             =>0x545454,
    "dustyrose"           =>0x856363,
    "feldspar"            =>0xd19275,
    "firebrick"           =>0x8e2323,
    "flesh"               =>0xf5ccb0,
    "forestgreen"         =>0x238e23,
    "gold"                =>0xcd7f32, #
    "goldenrod"           =>0xdbdb70,
    "grey"                =>0x545454,
    "greencopper"         =>0x856363,
    "greenyellow"         =>0xd19275,
    "huntergreen"         =>0x8e2323,
    "indianred"           =>0xf5ccb0,
    "khaki"               =>0x238e23,
    "lightblue"           =>0xcdd9d9, # 
    "lightgrey"           =>0xdbdb70,
    "lightsteelblue"      =>0x545454,
    "lightwood"           =>0x856363,
    "limegreen"           =>0xd19275,
    "mandarianorange"     =>0x8e2323,
    "maroon"              =>0xf5ccb0,
    "mediumaquamarine"    =>0x238e23,
    "mediumblue"          =>0x3232cd, #
    "mediumforestgreen"   =>0xdbdb70,
    "mediumgoldenrod"     =>0xeaeaae,
    "mediumorchid"        =>0x9370db,
    "mediumseagreen"      =>0x426f42,
    "mediumslateblue"     =>0x7f00ff,
    "mediumspringgreen"   =>0x7fff00,
    "mediumturquoise"     =>0x70dbdb,
    "mediumvioletred"     =>0xdb7093,
    "mediumwood"          =>0xa68064,
    "midnightblue"        =>0x2f2f4f,
    "navyblue"            =>0x23238e,
    "neonblue"            =>0x4d4dff,
    "neonpink"            =>0xff6ec7,
    "newmidnightblue"     =>0x00009c,
    "newtan"              =>0xebc79e,
    "oldgold"             =>0xcfb53b,
    "orange"              =>0xff7f00,
    "orangered"           =>0xff2400,
    "orchid"              =>0xdb70db,
    "palegreen"           =>0x8fbc8f,
    "pink"                =>0xbc8f8f,
    "plum"                =>0xeaadea,
    "quartz"              =>0xd9d9f3,
    "richblue"            =>0x5959ab,
    "salmon"              =>0x6f4242,
    "scarlet"             =>0x8c1717,
    "seagreen"            =>0x238e68,
    "semisweetchocolate"  =>0x6b4226,
    "sienna"              =>0x8e6b23,
    "silver"              =>0xe6e8fa,
    "skyblue"             =>0x3299cc,
    "slateblue"           =>0x007fff,
    "spicypink"           =>0xff1cae,
    "springgreen"         =>0x00ff7f,
    "steelblue"           =>0x236b8e,
    "summersky"           =>0x38b0de,
    "tan"                 =>0xdb9370,
    "thistle"             =>0xd8bfd8,
    "turquoise"           =>0xadeaea,
    "verydarkbrown"       =>0x5c4033,
    "verylightgrey"       =>0xcdcdcd,
    "violet"              =>0x4f2f4f,
    "violetred"           =>0xcc3299,
    "wheat"               =>0xd8d8bf,
    "yellowgreen"         =>0x99cc32,
  };
}


1;

__END__