-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhtmlcolors.mata
207 lines (195 loc) · 5.64 KB
/
htmlcolors.mata
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// Start Mata session/interpretter/compiler
mata:
// Line below drops the class from memory if already loaded
// mata drop htmlcolors()
// Define a class containing the HTML5 defined colors and their hexadecimal values
class htmlcolors {
// All members public
public:
// All colors are defined as final static members (e.g., immutable).
final static string scalar AliceBlue, AntiqueWhite, Aqua, Aquamarine,
Azure, Beige, Bisque, Black, BlanchedAlmond,
Blue, BlueViolet, Brown, BurlyWood, CadetBlue,
Chartreuse, Chocolate, Coral, CornflowerBlue,
Cornsilk, Crimson, Cyan, DarkBlue, DarkCyan,
DarkGoldenRod, DarkGray, DarkGreen, DarkKhaki,
DarkMagenta, DarkOliveGreen, DarkOrange,
DarkOrchid, DarkRed, DarkSalmon, DarkSeaGreen,
DarkSlateBlue, DarkSlateGray, DarkTurquoise,
DarkViolet, DeepPink, DeepSkyBlue, DimGray,
DodgerBlue, FireBrick, FloralWhite, ForestGreen,
Fuchsia, Gainsboro, GhostWhite, Gold, GoldenRod,
Gray, Green, GreenYellow, HoneyDew, HotPink,
IndianRed, Indigo, Ivory, Khaki, Lavender,
LavenderBlush, LawnGreen, LemonChiffon,
LightBlue, LightCoral, LightCyan,
LightGoldenRodYellow, LightGray, LightGreen,
LightPink, LightSalmon, LightSeaGreen,
LightSkyBlue, LightSlateGray, LightSteelBlue,
LightYellow, Lime, LimeGreen, Linen, Magenta,
Maroon, MediumAquaMarine, MediumBlue,
MediumOrchid, MediumPurple, MediumSeaGreen,
MediumSlateBlue, MediumSpringGreen,
MediumTurquoise, MediumVioletRed, MidnightBlue,
MintCream, MistyRose, Moccasin, NavajoWhite,
Navy, OldLace, Olive, OliveDrab, Orange,
OrangeRed, Orchid, PaleGoldenRod, PaleGreen,
PaleTurquoise, PaleVioletRed, PapayaWhip,
PeachPuff, Peru, Pink, Plum, PowderBlue, Purple,
RebeccaPurple, Red, RosyBrown, RoyalBlue,
SaddleBrown, Salmon, SandyBrown, SeaGreen,
SeaShell, Sienna, Silver, SkyBlue, SlateBlue,
SlateGray, Snow, SpringGreen, SteelBlue, Tan,
Teal, Thistle, Tomato, Turquoise, Violet, Wheat,
White, WhiteSmoke, Yellow, YellowGreen
// Constructor method
void new()
} // End Class definition
// Class constructor method definition
void htmlcolors::new() {
// Creates something analogous to a Map object where the HTML name is the
// key and the hexadecimal value is the value
AliceBlue = "#f0f8ff"
AntiqueWhite = "#faebd7"
Aqua = "#00ffff"
Aquamarine = "#7fffd4"
Azure = "#f0ffff"
Beige = "#f5f5dc"
Bisque = "#ffe4c4"
Black = "#000000"
BlanchedAlmond = "#ffebcd"
Blue = "#0000ff"
BlueViolet = "#8a2be2"
Brown = "#a52a2a"
BurlyWood = "#deb887"
CadetBlue = "#5f9ea0"
Chartreuse = "#7fff00"
Chocolate = "#d2691e"
Coral = "#ff7f50"
CornflowerBlue = "#6495ed"
Cornsilk = "#fff8dc"
Crimson = "#dc143c"
Cyan = "#00ffff"
DarkBlue = "#00008b"
DarkCyan = "#008b8b"
DarkGoldenRod = "#b8860b"
DarkGray = "#a9a9a9"
DarkGreen = "#006400"
DarkKhaki = "#bdb76b"
DarkMagenta = "#8b008b"
DarkOliveGreen = "#556b2f"
DarkOrange = "#ff8c00"
DarkOrchid = "#9932cc"
DarkRed = "#8b0000"
DarkSalmon = "#e9967a"
DarkSeaGreen = "#8fbc8f"
DarkSlateBlue = "#483d8b"
DarkSlateGray = "#2f4f4f"
DarkTurquoise = "#00ced1"
DarkViolet = "#9400d3"
DeepPink = "#ff1493"
DeepSkyBlue = "#00bfff"
DimGray = "#696969"
DodgerBlue = "#1e90ff"
FireBrick = "#b22222"
FloralWhite = "#fffaf0"
ForestGreen = "#228b22"
Fuchsia = "#ff00ff"
Gainsboro = "#dcdcdc"
GhostWhite = "#f8f8ff"
Gold = "#ffd700"
GoldenRod = "#daa520"
Gray = "#808080"
Green = "#008000"
GreenYellow = "#adff2f"
HoneyDew = "#f0fff0"
HotPink = "#ff69b4"
IndianRed = "#cd5c5c"
Indigo = "#4b0082"
Ivory = "#fffff0"
Khaki = "#f0e68c"
Lavender = "#e6e6fa"
LavenderBlush = "#fff0f5"
LawnGreen = "#7cfc00"
LemonChiffon = "#fffacd"
LightBlue = "#add8e6"
LightCoral = "#f08080"
LightCyan = "#e0ffff"
LightGoldenRodYellow = "#fafad2"
LightGray = "#d3d3d3"
LightGreen = "#90ee90"
LightPink = "#ffb6c1"
LightSalmon = "#ffa07a"
LightSeaGreen = "#20b2aa"
LightSkyBlue = "#87cefa"
LightSlateGray = "#778899"
LightSteelBlue = "#b0c4de"
LightYellow = "#ffffe0"
Lime = "#00ff00"
LimeGreen = "#32cd32"
Linen = "#faf0e6"
Magenta = "#ff00ff"
Maroon = "#800000"
MediumAquaMarine = "#66cdaa"
MediumBlue = "#0000cd"
MediumOrchid = "#ba55d3"
MediumPurple = "#9370db"
MediumSeaGreen = "#3cb371"
MediumSlateBlue = "#7b68ee"
MediumSpringGreen = "#00fa9a"
MediumTurquoise = "#48d1cc"
MediumVioletRed = "#c71585"
MidnightBlue = "#191970"
MintCream = "#f5fffa"
MistyRose = "#ffe4e1"
Moccasin = "#ffe4b5"
NavajoWhite = "#ffdead"
Navy = "#000080"
OldLace = "#fdf5e6"
Olive = "#808000"
OliveDrab = "#6b8e23"
Orange = "#ffa500"
OrangeRed = "#ff4500"
Orchid = "#da70d6"
PaleGoldenRod = "#eee8aa"
PaleGreen = "#98fb98"
PaleTurquoise = "#afeeee"
PaleVioletRed = "#db7093"
PapayaWhip = "#ffefd5"
PeachPuff = "#ffdab9"
Peru = "#cd853f"
Pink = "#ffc0cb"
Plum = "#dda0dd"
PowderBlue = "#b0e0e6"
Purple = "#800080"
RebeccaPurple = "#663399"
Red = "#ff0000"
RosyBrown = "#bc8f8f"
RoyalBlue = "#4169e1"
SaddleBrown = "#8b4513"
Salmon = "#fa8072"
SandyBrown = "#f4a460"
SeaGreen = "#2e8b57"
SeaShell = "#fff5ee"
Sienna = "#a0522d"
Silver = "#c0c0c0"
SkyBlue = "#87ceeb"
SlateBlue = "#6a5acd"
SlateGray = "#708090"
Snow = "#fffafa"
SpringGreen = "#00ff7f"
SteelBlue = "#4682b4"
Tan = "#d2b48c"
Teal = "#008080"
Thistle = "#d8bfd8"
Tomato = "#ff6347"
Turquoise = "#40e0d0"
Violet = "#ee82ee"
Wheat = "#f5deb3"
White = "#ffffff"
WhiteSmoke = "#f5f5f5"
Yellow = "#ffff00"
YellowGreen = "#9acd32"
} // End of Constructor method
// Ends Mata session
end