Changeset View
Changeset View
Standalone View
Standalone View
src/part/dot2qtconsts.cpp
Show All 12 Lines | |||||
13 | * GNU General Public License for more details. * | 13 | * GNU General Public License for more details. * | ||
14 | * * | 14 | * * | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software | ||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
18 | 02110-1301, USA | 18 | 02110-1301, USA | ||
19 | ***************************************************************************/ | 19 | ***************************************************************************/ | ||
20 | #include "dot2qtconsts.h" | 20 | #include "dot2qtconsts.h" | ||
21 | #include "dotgrammar.h" | | |||
22 | #include "canvasnode.h" | 21 | #include "canvasnode.h" | ||
22 | #include "dotgrammar.h" | ||||
23 | #include "kgraphviewerlib_debug.h" | 23 | #include "kgraphviewerlib_debug.h" | ||
24 | 24 | | |||
25 | #include <QDebug> | | |||
26 | #include <QColor> | 25 | #include <QColor> | ||
26 | #include <QDebug> | ||||
27 | 27 | | |||
28 | const Dot2QtConsts Dot2QtConsts::m_componentData; | 28 | const Dot2QtConsts Dot2QtConsts::m_componentData; | ||
29 | 29 | | |||
30 | static const struct { | 30 | static const struct { | ||
31 | const char * input; | 31 | const char *input; | ||
32 | const char * roman; | 32 | const char *roman; | ||
33 | const char * italic; | 33 | const char *italic; | ||
34 | const char * bold; | 34 | const char *bold; | ||
35 | const char * boldItalic; | 35 | const char *boldItalic; | ||
36 | const char * light; | 36 | const char *light; | ||
37 | const char * lightItalic; | 37 | const char *lightItalic; | ||
38 | } postscriptFontNames[] = { | 38 | } postscriptFontNames[] = {{"arial", "Arial", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
39 | { "arial", "Arial", nullptr, nullptr, nullptr, nullptr, nullptr }, | | |||
40 | { "avantgarde", "AvantGarde-Book", nullptr, nullptr, nullptr, nullptr, nullptr }, | 39 | {"avantgarde", "AvantGarde-Book", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
41 | { "charter", "CharterBT-Roman", nullptr, nullptr, nullptr, nullptr, nullptr }, | 40 | {"charter", "CharterBT-Roman", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
42 | { "garamond", "Garamond-Regular", nullptr, nullptr, nullptr, nullptr, nullptr }, | 41 | {"garamond", "Garamond-Regular", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
43 | { "gillsans", "GillSans", nullptr, nullptr, nullptr, nullptr, nullptr }, | 42 | {"gillsans", "GillSans", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
44 | { "helvetica", | 43 | {"helvetica", "Helvetica", "Helvetica-Oblique", "Helvetica-Bold", "Helvetica-BoldOblique", "Helvetica-Outline", "Helvetica-OutlineOblique"}, | ||
45 | "Helvetica", "Helvetica-Oblique", | 44 | {"palatino", "Palatino", "Palatino-Italic", "Palatino-Bold", "Palatino-BoldItalic", "Palatino", "Palatino-Italic"}, | ||
46 | "Helvetica-Bold", "Helvetica-BoldOblique", | 45 | {"times", "Times-Roman", "Times-Italic", "Times-Bold", "Times-BoldItalic", "Times-Outline", "Times-Italic"}, | ||
47 | "Helvetica-Outline", "Helvetica-OutlineOblique" }, | | |||
48 | { "palatino", | | |||
49 | "Palatino", "Palatino-Italic", | | |||
50 | "Palatino-Bold", "Palatino-BoldItalic", | | |||
51 | "Palatino", "Palatino-Italic" }, | | |||
52 | { "times", | | |||
53 | "Times-Roman", "Times-Italic", | | |||
54 | "Times-Bold", "Times-BoldItalic", | | |||
55 | "Times-Outline", "Times-Italic" }, | | |||
56 | { "new century schoolbook", "NewCenturySchlbk-Roman", nullptr, nullptr, nullptr, nullptr, nullptr }, | 46 | {"new century schoolbook", "NewCenturySchlbk-Roman", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
57 | { "symbol", "Symbol", "Symbol", "Symbol", "Symbol", "Symbol", "Symbol" }, | 47 | {"symbol", "Symbol", "Symbol", "Symbol", "Symbol", "Symbol", "Symbol"}, | ||
58 | { "terminal", "Courier", nullptr, nullptr, nullptr, nullptr, nullptr }, | 48 | {"terminal", "Courier", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
59 | { "times new roman", "TimesNewRoman", nullptr, nullptr, nullptr, nullptr, nullptr }, | 49 | {"times new roman", "TimesNewRoman", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
60 | { "utopia", "Utopia-Regular", nullptr, nullptr, nullptr, nullptr, nullptr }, | 50 | {"utopia", "Utopia-Regular", nullptr, nullptr, nullptr, nullptr, nullptr}, | ||
61 | { nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr } | 51 | {nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}}; | ||
62 | }; | | |||
63 | 52 | | |||
64 | static const struct { | 53 | static const struct { | ||
65 | const char * name; | 54 | const char *name; | ||
66 | unsigned int r; | 55 | unsigned int r; | ||
67 | unsigned int g; | 56 | unsigned int g; | ||
68 | unsigned int b; | 57 | unsigned int b; | ||
69 | } color_lib[] = { | 58 | } color_lib[] = {{"snow", 255, 250, 250}, | ||
70 | { "snow", 255, 250, 250 }, | | |||
71 | { "ghost white", 248, 248, 255 }, | 59 | {"ghost white", 248, 248, 255}, | ||
72 | { "ghostwhite", 248, 248, 255 }, | 60 | {"ghostwhite", 248, 248, 255}, | ||
73 | { "white smoke", 245, 245, 245 }, | 61 | {"white smoke", 245, 245, 245}, | ||
74 | { "whitesmoke", 245, 245, 245 }, | 62 | {"whitesmoke", 245, 245, 245}, | ||
75 | { "gainsboro", 220, 220, 220 }, | 63 | {"gainsboro", 220, 220, 220}, | ||
76 | { "floral white", 255, 250, 240 }, | 64 | {"floral white", 255, 250, 240}, | ||
77 | { "floralwhite", 255, 250, 240 }, | 65 | {"floralwhite", 255, 250, 240}, | ||
78 | { "old lace", 253, 245, 230 }, | 66 | {"old lace", 253, 245, 230}, | ||
79 | { "oldlace", 253, 245, 230 }, | 67 | {"oldlace", 253, 245, 230}, | ||
80 | { "linen", 250, 240, 230 }, | 68 | {"linen", 250, 240, 230}, | ||
81 | { "antique white", 250, 235, 215 }, | 69 | {"antique white", 250, 235, 215}, | ||
82 | { "antiquewhite", 250, 235, 215 }, | 70 | {"antiquewhite", 250, 235, 215}, | ||
83 | { "papaya whip", 255, 239, 213 }, | 71 | {"papaya whip", 255, 239, 213}, | ||
84 | { "papayawhip", 255, 239, 213 }, | 72 | {"papayawhip", 255, 239, 213}, | ||
85 | { "blanched almond", 255, 235, 205 }, | 73 | {"blanched almond", 255, 235, 205}, | ||
86 | { "blanchedalmond", 255, 235, 205 }, | 74 | {"blanchedalmond", 255, 235, 205}, | ||
87 | { "bisque", 255, 228, 196 }, | 75 | {"bisque", 255, 228, 196}, | ||
88 | { "peach puff", 255, 218, 185 }, | 76 | {"peach puff", 255, 218, 185}, | ||
89 | { "peachpuff", 255, 218, 185 }, | 77 | {"peachpuff", 255, 218, 185}, | ||
90 | { "navajo white", 255, 222, 173 }, | 78 | {"navajo white", 255, 222, 173}, | ||
91 | { "navajowhite", 255, 222, 173 }, | 79 | {"navajowhite", 255, 222, 173}, | ||
92 | { "moccasin", 255, 228, 181 }, | 80 | {"moccasin", 255, 228, 181}, | ||
93 | { "cornsilk", 255, 248, 220 }, | 81 | {"cornsilk", 255, 248, 220}, | ||
94 | { "ivory", 255, 255, 240 }, | 82 | {"ivory", 255, 255, 240}, | ||
95 | { "lemon chiffon", 255, 250, 205 }, | 83 | {"lemon chiffon", 255, 250, 205}, | ||
96 | { "lemonchiffon", 255, 250, 205 }, | 84 | {"lemonchiffon", 255, 250, 205}, | ||
97 | { "seashell", 255, 245, 238 }, | 85 | {"seashell", 255, 245, 238}, | ||
98 | { "honeydew", 240, 255, 240 }, | 86 | {"honeydew", 240, 255, 240}, | ||
99 | { "mint cream", 245, 255, 250 }, | 87 | {"mint cream", 245, 255, 250}, | ||
100 | { "mintcream", 245, 255, 250 }, | 88 | {"mintcream", 245, 255, 250}, | ||
101 | { "azure", 240, 255, 255 }, | 89 | {"azure", 240, 255, 255}, | ||
102 | { "alice blue", 240, 248, 255 }, | 90 | {"alice blue", 240, 248, 255}, | ||
103 | { "aliceblue", 240, 248, 255 }, | 91 | {"aliceblue", 240, 248, 255}, | ||
104 | { "lavender", 230, 230, 250 }, | 92 | {"lavender", 230, 230, 250}, | ||
105 | { "lavender blush", 255, 240, 245 }, | 93 | {"lavender blush", 255, 240, 245}, | ||
106 | { "lavenderblush", 255, 240, 245 }, | 94 | {"lavenderblush", 255, 240, 245}, | ||
107 | { "misty rose", 255, 228, 225 }, | 95 | {"misty rose", 255, 228, 225}, | ||
108 | { "mistyrose", 255, 228, 225 }, | 96 | {"mistyrose", 255, 228, 225}, | ||
109 | { "white", 255, 255, 255 }, | 97 | {"white", 255, 255, 255}, | ||
110 | { "black", 0, 0, 0 }, | 98 | {"black", 0, 0, 0}, | ||
111 | { "dark slate gray", 47, 79, 79 }, | 99 | {"dark slate gray", 47, 79, 79}, | ||
112 | { "darkslategray", 47, 79, 79 }, | 100 | {"darkslategray", 47, 79, 79}, | ||
113 | { "dark slate grey", 47, 79, 79 }, | 101 | {"dark slate grey", 47, 79, 79}, | ||
114 | { "darkslategrey", 47, 79, 79 }, | 102 | {"darkslategrey", 47, 79, 79}, | ||
115 | { "dim gray", 105, 105, 105 }, | 103 | {"dim gray", 105, 105, 105}, | ||
116 | { "dimgray", 105, 105, 105 }, | 104 | {"dimgray", 105, 105, 105}, | ||
117 | { "dim grey", 105, 105, 105 }, | 105 | {"dim grey", 105, 105, 105}, | ||
118 | { "dimgrey", 105, 105, 105 }, | 106 | {"dimgrey", 105, 105, 105}, | ||
119 | { "slate gray", 112, 128, 144 }, | 107 | {"slate gray", 112, 128, 144}, | ||
120 | { "slategray", 112, 128, 144 }, | 108 | {"slategray", 112, 128, 144}, | ||
121 | { "slate grey", 112, 128, 144 }, | 109 | {"slate grey", 112, 128, 144}, | ||
122 | { "slategrey", 112, 128, 144 }, | 110 | {"slategrey", 112, 128, 144}, | ||
123 | { "light slate gray", 119, 136, 153 }, | 111 | {"light slate gray", 119, 136, 153}, | ||
124 | { "lightslategray", 119, 136, 153 }, | 112 | {"lightslategray", 119, 136, 153}, | ||
125 | { "light slate grey", 119, 136, 153 }, | 113 | {"light slate grey", 119, 136, 153}, | ||
126 | { "lightslategrey", 119, 136, 153 }, | 114 | {"lightslategrey", 119, 136, 153}, | ||
127 | { "gray", 190, 190, 190 }, | 115 | {"gray", 190, 190, 190}, | ||
128 | { "grey", 190, 190, 190 }, | 116 | {"grey", 190, 190, 190}, | ||
129 | { "light grey", 211, 211, 211 }, | 117 | {"light grey", 211, 211, 211}, | ||
130 | { "lightgrey", 211, 211, 211 }, | 118 | {"lightgrey", 211, 211, 211}, | ||
131 | { "light gray", 211, 211, 211 }, | 119 | {"light gray", 211, 211, 211}, | ||
132 | { "lightgray", 211, 211, 211 }, | 120 | {"lightgray", 211, 211, 211}, | ||
133 | { "midnight blue", 25, 25, 112 }, | 121 | {"midnight blue", 25, 25, 112}, | ||
134 | { "midnightblue", 25, 25, 112 }, | 122 | {"midnightblue", 25, 25, 112}, | ||
135 | { "navy", 0, 0, 128 }, | 123 | {"navy", 0, 0, 128}, | ||
136 | { "navy blue", 0, 0, 128 }, | 124 | {"navy blue", 0, 0, 128}, | ||
137 | { "navyblue", 0, 0, 128 }, | 125 | {"navyblue", 0, 0, 128}, | ||
138 | { "cornflower blue", 100, 149, 237 }, | 126 | {"cornflower blue", 100, 149, 237}, | ||
139 | { "cornflowerblue", 100, 149, 237 }, | 127 | {"cornflowerblue", 100, 149, 237}, | ||
140 | { "dark slate blue", 72, 61, 139 }, | 128 | {"dark slate blue", 72, 61, 139}, | ||
141 | { "darkslateblue", 72, 61, 139 }, | 129 | {"darkslateblue", 72, 61, 139}, | ||
142 | { "slate blue", 106, 90, 205 }, | 130 | {"slate blue", 106, 90, 205}, | ||
143 | { "slateblue", 106, 90, 205 }, | 131 | {"slateblue", 106, 90, 205}, | ||
144 | { "medium slate blue", 123, 104, 238 }, | 132 | {"medium slate blue", 123, 104, 238}, | ||
145 | { "mediumslateblue", 123, 104, 238 }, | 133 | {"mediumslateblue", 123, 104, 238}, | ||
146 | { "light slate blue", 132, 112, 255 }, | 134 | {"light slate blue", 132, 112, 255}, | ||
147 | { "lightslateblue", 132, 112, 255 }, | 135 | {"lightslateblue", 132, 112, 255}, | ||
148 | { "medium blue", 0, 0, 205 }, | 136 | {"medium blue", 0, 0, 205}, | ||
149 | { "mediumblue", 0, 0, 205 }, | 137 | {"mediumblue", 0, 0, 205}, | ||
150 | { "royal blue", 65, 105, 225 }, | 138 | {"royal blue", 65, 105, 225}, | ||
151 | { "royalblue", 65, 105, 225 }, | 139 | {"royalblue", 65, 105, 225}, | ||
152 | { "blue", 0, 0, 255 }, | 140 | {"blue", 0, 0, 255}, | ||
153 | { "dodger blue", 30, 144, 255 }, | 141 | {"dodger blue", 30, 144, 255}, | ||
154 | { "dodgerblue", 30, 144, 255 }, | 142 | {"dodgerblue", 30, 144, 255}, | ||
155 | { "deep sky blue", 0, 191, 255 }, | 143 | {"deep sky blue", 0, 191, 255}, | ||
156 | { "deepskyblue", 0, 191, 255 }, | 144 | {"deepskyblue", 0, 191, 255}, | ||
157 | { "sky blue", 135, 206, 235 }, | 145 | {"sky blue", 135, 206, 235}, | ||
158 | { "skyblue", 135, 206, 235 }, | 146 | {"skyblue", 135, 206, 235}, | ||
159 | { "light sky blue", 135, 206, 250 }, | 147 | {"light sky blue", 135, 206, 250}, | ||
160 | { "lightskyblue", 135, 206, 250 }, | 148 | {"lightskyblue", 135, 206, 250}, | ||
161 | { "steel blue", 70, 130, 180 }, | 149 | {"steel blue", 70, 130, 180}, | ||
162 | { "steelblue", 70, 130, 180 }, | 150 | {"steelblue", 70, 130, 180}, | ||
163 | { "light steel blue", 176, 196, 222 }, | 151 | {"light steel blue", 176, 196, 222}, | ||
164 | { "lightsteelblue", 176, 196, 222 }, | 152 | {"lightsteelblue", 176, 196, 222}, | ||
165 | { "light blue", 173, 216, 230 }, | 153 | {"light blue", 173, 216, 230}, | ||
166 | { "lightblue", 173, 216, 230 }, | 154 | {"lightblue", 173, 216, 230}, | ||
167 | { "powder blue", 176, 224, 230 }, | 155 | {"powder blue", 176, 224, 230}, | ||
168 | { "powderblue", 176, 224, 230 }, | 156 | {"powderblue", 176, 224, 230}, | ||
169 | { "pale turquoise", 175, 238, 238 }, | 157 | {"pale turquoise", 175, 238, 238}, | ||
170 | { "paleturquoise", 175, 238, 238 }, | 158 | {"paleturquoise", 175, 238, 238}, | ||
171 | { "dark turquoise", 0, 206, 209 }, | 159 | {"dark turquoise", 0, 206, 209}, | ||
172 | { "darkturquoise", 0, 206, 209 }, | 160 | {"darkturquoise", 0, 206, 209}, | ||
173 | { "medium turquoise", 72, 209, 204 }, | 161 | {"medium turquoise", 72, 209, 204}, | ||
174 | { "mediumturquoise", 72, 209, 204 }, | 162 | {"mediumturquoise", 72, 209, 204}, | ||
175 | { "turquoise", 64, 224, 208 }, | 163 | {"turquoise", 64, 224, 208}, | ||
176 | { "cyan", 0, 255, 255 }, | 164 | {"cyan", 0, 255, 255}, | ||
177 | { "light cyan", 224, 255, 255 }, | 165 | {"light cyan", 224, 255, 255}, | ||
178 | { "lightcyan", 224, 255, 255 }, | 166 | {"lightcyan", 224, 255, 255}, | ||
179 | { "cadet blue", 95, 158, 160 }, | 167 | {"cadet blue", 95, 158, 160}, | ||
180 | { "cadetblue", 95, 158, 160 }, | 168 | {"cadetblue", 95, 158, 160}, | ||
181 | { "medium aquamarine", 102, 205, 170 }, | 169 | {"medium aquamarine", 102, 205, 170}, | ||
182 | { "mediumaquamarine", 102, 205, 170 }, | 170 | {"mediumaquamarine", 102, 205, 170}, | ||
183 | { "aquamarine", 127, 255, 212 }, | 171 | {"aquamarine", 127, 255, 212}, | ||
184 | { "dark green", 0, 100, 0 }, | 172 | {"dark green", 0, 100, 0}, | ||
185 | { "darkgreen", 0, 100, 0 }, | 173 | {"darkgreen", 0, 100, 0}, | ||
186 | { "dark olive green", 85, 107, 47 }, | 174 | {"dark olive green", 85, 107, 47}, | ||
187 | { "darkolivegreen", 85, 107, 47 }, | 175 | {"darkolivegreen", 85, 107, 47}, | ||
188 | { "dark sea green", 143, 188, 143 }, | 176 | {"dark sea green", 143, 188, 143}, | ||
189 | { "darkseagreen", 143, 188, 143 }, | 177 | {"darkseagreen", 143, 188, 143}, | ||
190 | { "sea green", 46, 139, 87 }, | 178 | {"sea green", 46, 139, 87}, | ||
191 | { "seagreen", 46, 139, 87 }, | 179 | {"seagreen", 46, 139, 87}, | ||
192 | { "medium sea green", 60, 179, 113 }, | 180 | {"medium sea green", 60, 179, 113}, | ||
193 | { "mediumseagreen", 60, 179, 113 }, | 181 | {"mediumseagreen", 60, 179, 113}, | ||
194 | { "light sea green", 32, 178, 170 }, | 182 | {"light sea green", 32, 178, 170}, | ||
195 | { "lightseagreen", 32, 178, 170 }, | 183 | {"lightseagreen", 32, 178, 170}, | ||
196 | { "pale green", 152, 251, 152 }, | 184 | {"pale green", 152, 251, 152}, | ||
197 | { "palegreen", 152, 251, 152 }, | 185 | {"palegreen", 152, 251, 152}, | ||
198 | { "spring green", 0, 255, 127 }, | 186 | {"spring green", 0, 255, 127}, | ||
199 | { "springgreen", 0, 255, 127 }, | 187 | {"springgreen", 0, 255, 127}, | ||
200 | { "lawn green", 124, 252, 0 }, | 188 | {"lawn green", 124, 252, 0}, | ||
201 | { "lawngreen", 124, 252, 0 }, | 189 | {"lawngreen", 124, 252, 0}, | ||
202 | { "green", 0, 255, 0 }, | 190 | {"green", 0, 255, 0}, | ||
203 | { "chartreuse", 127, 255, 0 }, | 191 | {"chartreuse", 127, 255, 0}, | ||
204 | { "medium spring green", 0, 250, 154 }, | 192 | {"medium spring green", 0, 250, 154}, | ||
205 | { "mediumspringgreen", 0, 250, 154 }, | 193 | {"mediumspringgreen", 0, 250, 154}, | ||
206 | { "green yellow", 173, 255, 47 }, | 194 | {"green yellow", 173, 255, 47}, | ||
207 | { "greenyellow", 173, 255, 47 }, | 195 | {"greenyellow", 173, 255, 47}, | ||
208 | { "lime green", 50, 205, 50 }, | 196 | {"lime green", 50, 205, 50}, | ||
209 | { "limegreen", 50, 205, 50 }, | 197 | {"limegreen", 50, 205, 50}, | ||
210 | { "yellow green", 154, 205, 50 }, | 198 | {"yellow green", 154, 205, 50}, | ||
211 | { "yellowgreen", 154, 205, 50 }, | 199 | {"yellowgreen", 154, 205, 50}, | ||
212 | { "forest green", 34, 139, 34 }, | 200 | {"forest green", 34, 139, 34}, | ||
213 | { "forestgreen", 34, 139, 34 }, | 201 | {"forestgreen", 34, 139, 34}, | ||
214 | { "olive drab", 107, 142, 35 }, | 202 | {"olive drab", 107, 142, 35}, | ||
215 | { "olivedrab", 107, 142, 35 }, | 203 | {"olivedrab", 107, 142, 35}, | ||
216 | { "dark khaki", 189, 183, 107 }, | 204 | {"dark khaki", 189, 183, 107}, | ||
217 | { "darkkhaki", 189, 183, 107 }, | 205 | {"darkkhaki", 189, 183, 107}, | ||
218 | { "khaki", 240, 230, 140 }, | 206 | {"khaki", 240, 230, 140}, | ||
219 | { "pale goldenrod", 238, 232, 170 }, | 207 | {"pale goldenrod", 238, 232, 170}, | ||
220 | { "palegoldenrod", 238, 232, 170 }, | 208 | {"palegoldenrod", 238, 232, 170}, | ||
221 | { "light goldenrod yellow", 250, 250, 210 }, | 209 | {"light goldenrod yellow", 250, 250, 210}, | ||
222 | { "lightgoldenrodyellow", 250, 250, 210 }, | 210 | {"lightgoldenrodyellow", 250, 250, 210}, | ||
223 | { "light yellow", 255, 255, 224 }, | 211 | {"light yellow", 255, 255, 224}, | ||
224 | { "lightyellow", 255, 255, 224 }, | 212 | {"lightyellow", 255, 255, 224}, | ||
225 | { "yellow", 255, 255, 0 }, | 213 | {"yellow", 255, 255, 0}, | ||
226 | { "gold", 255, 215, 0 }, | 214 | {"gold", 255, 215, 0}, | ||
227 | { "light goldenrod", 238, 221, 130 }, | 215 | {"light goldenrod", 238, 221, 130}, | ||
228 | { "lightgoldenrod", 238, 221, 130 }, | 216 | {"lightgoldenrod", 238, 221, 130}, | ||
229 | { "goldenrod", 218, 165, 32 }, | 217 | {"goldenrod", 218, 165, 32}, | ||
230 | { "dark goldenrod", 184, 134, 11 }, | 218 | {"dark goldenrod", 184, 134, 11}, | ||
231 | { "darkgoldenrod", 184, 134, 11 }, | 219 | {"darkgoldenrod", 184, 134, 11}, | ||
232 | { "rosy brown", 188, 143, 143 }, | 220 | {"rosy brown", 188, 143, 143}, | ||
233 | { "rosybrown", 188, 143, 143 }, | 221 | {"rosybrown", 188, 143, 143}, | ||
234 | { "indian red", 205, 92, 92 }, | 222 | {"indian red", 205, 92, 92}, | ||
235 | { "indianred", 205, 92, 92 }, | 223 | {"indianred", 205, 92, 92}, | ||
236 | { "saddle brown", 139, 69, 19 }, | 224 | {"saddle brown", 139, 69, 19}, | ||
237 | { "saddlebrown", 139, 69, 19 }, | 225 | {"saddlebrown", 139, 69, 19}, | ||
238 | { "sienna", 160, 82, 45 }, | 226 | {"sienna", 160, 82, 45}, | ||
239 | { "peru", 205, 133, 63 }, | 227 | {"peru", 205, 133, 63}, | ||
240 | { "burlywood", 222, 184, 135 }, | 228 | {"burlywood", 222, 184, 135}, | ||
241 | { "beige", 245, 245, 220 }, | 229 | {"beige", 245, 245, 220}, | ||
242 | { "wheat", 245, 222, 179 }, | 230 | {"wheat", 245, 222, 179}, | ||
243 | { "sandy brown", 244, 164, 96 }, | 231 | {"sandy brown", 244, 164, 96}, | ||
244 | { "sandybrown", 244, 164, 96 }, | 232 | {"sandybrown", 244, 164, 96}, | ||
245 | { "tan", 210, 180, 140 }, | 233 | {"tan", 210, 180, 140}, | ||
246 | { "chocolate", 210, 105, 30 }, | 234 | {"chocolate", 210, 105, 30}, | ||
247 | { "firebrick", 178, 34, 34 }, | 235 | {"firebrick", 178, 34, 34}, | ||
248 | { "brown", 165, 42, 42 }, | 236 | {"brown", 165, 42, 42}, | ||
249 | { "dark salmon", 233, 150, 122 }, | 237 | {"dark salmon", 233, 150, 122}, | ||
250 | { "darksalmon", 233, 150, 122 }, | 238 | {"darksalmon", 233, 150, 122}, | ||
251 | { "salmon", 250, 128, 114 }, | 239 | {"salmon", 250, 128, 114}, | ||
252 | { "light salmon", 255, 160, 122 }, | 240 | {"light salmon", 255, 160, 122}, | ||
253 | { "lightsalmon", 255, 160, 122 }, | 241 | {"lightsalmon", 255, 160, 122}, | ||
254 | { "orange", 255, 165, 0 }, | 242 | {"orange", 255, 165, 0}, | ||
255 | { "dark orange", 255, 140, 0 }, | 243 | {"dark orange", 255, 140, 0}, | ||
256 | { "darkorange", 255, 140, 0 }, | 244 | {"darkorange", 255, 140, 0}, | ||
257 | { "coral", 255, 127, 80 }, | 245 | {"coral", 255, 127, 80}, | ||
258 | { "light coral", 240, 128, 128 }, | 246 | {"light coral", 240, 128, 128}, | ||
259 | { "lightcoral", 240, 128, 128 }, | 247 | {"lightcoral", 240, 128, 128}, | ||
260 | { "tomato", 255, 99, 71 }, | 248 | {"tomato", 255, 99, 71}, | ||
261 | { "orange red", 255, 69, 0 }, | 249 | {"orange red", 255, 69, 0}, | ||
262 | { "orangered", 255, 69, 0 }, | 250 | {"orangered", 255, 69, 0}, | ||
263 | { "red", 255, 0, 0 }, | 251 | {"red", 255, 0, 0}, | ||
264 | { "hot pink", 255, 105, 180 }, | 252 | {"hot pink", 255, 105, 180}, | ||
265 | { "hotpink", 255, 105, 180 }, | 253 | {"hotpink", 255, 105, 180}, | ||
266 | { "deep pink", 255, 20, 147 }, | 254 | {"deep pink", 255, 20, 147}, | ||
267 | { "deeppink", 255, 20, 147 }, | 255 | {"deeppink", 255, 20, 147}, | ||
268 | { "pink", 255, 192, 203 }, | 256 | {"pink", 255, 192, 203}, | ||
269 | { "light pink", 255, 182, 193 }, | 257 | {"light pink", 255, 182, 193}, | ||
270 | { "lightpink", 255, 182, 193 }, | 258 | {"lightpink", 255, 182, 193}, | ||
271 | { "pale violet red", 219, 112, 147 }, | 259 | {"pale violet red", 219, 112, 147}, | ||
272 | { "palevioletred", 219, 112, 147 }, | 260 | {"palevioletred", 219, 112, 147}, | ||
273 | { "maroon", 176, 48, 96 }, | 261 | {"maroon", 176, 48, 96}, | ||
274 | { "medium violet red", 199, 21, 133 }, | 262 | {"medium violet red", 199, 21, 133}, | ||
275 | { "mediumvioletred", 199, 21, 133 }, | 263 | {"mediumvioletred", 199, 21, 133}, | ||
276 | { "violet red", 208, 32, 144 }, | 264 | {"violet red", 208, 32, 144}, | ||
277 | { "violetred", 208, 32, 144 }, | 265 | {"violetred", 208, 32, 144}, | ||
278 | { "magenta", 255, 0, 255 }, | 266 | {"magenta", 255, 0, 255}, | ||
279 | { "violet", 238, 130, 238 }, | 267 | {"violet", 238, 130, 238}, | ||
280 | { "plum", 221, 160, 221 }, | 268 | {"plum", 221, 160, 221}, | ||
281 | { "orchid", 218, 112, 214 }, | 269 | {"orchid", 218, 112, 214}, | ||
282 | { "medium orchid", 186, 85, 211 }, | 270 | {"medium orchid", 186, 85, 211}, | ||
283 | { "mediumorchid", 186, 85, 211 }, | 271 | {"mediumorchid", 186, 85, 211}, | ||
284 | { "dark orchid", 153, 50, 204 }, | 272 | {"dark orchid", 153, 50, 204}, | ||
285 | { "darkorchid", 153, 50, 204 }, | 273 | {"darkorchid", 153, 50, 204}, | ||
286 | { "dark violet", 148, 0, 211 }, | 274 | {"dark violet", 148, 0, 211}, | ||
287 | { "darkviolet", 148, 0, 211 }, | 275 | {"darkviolet", 148, 0, 211}, | ||
288 | { "blue violet", 138, 43, 226 }, | 276 | {"blue violet", 138, 43, 226}, | ||
289 | { "blueviolet", 138, 43, 226 }, | 277 | {"blueviolet", 138, 43, 226}, | ||
290 | { "purple", 160, 32, 240 }, | 278 | {"purple", 160, 32, 240}, | ||
291 | { "medium purple", 147, 112, 219 }, | 279 | {"medium purple", 147, 112, 219}, | ||
292 | { "mediumpurple", 147, 112, 219 }, | 280 | {"mediumpurple", 147, 112, 219}, | ||
293 | { "thistle", 216, 191, 216 }, | 281 | {"thistle", 216, 191, 216}, | ||
294 | { "snow1", 255, 250, 250 }, | 282 | {"snow1", 255, 250, 250}, | ||
295 | { "snow2", 238, 233, 233 }, | 283 | {"snow2", 238, 233, 233}, | ||
296 | { "snow3", 205, 201, 201 }, | 284 | {"snow3", 205, 201, 201}, | ||
297 | { "snow4", 139, 137, 137 }, | 285 | {"snow4", 139, 137, 137}, | ||
298 | { "seashell1", 255, 245, 238 }, | 286 | {"seashell1", 255, 245, 238}, | ||
299 | { "seashell2", 238, 229, 222 }, | 287 | {"seashell2", 238, 229, 222}, | ||
300 | { "seashell3", 205, 197, 191 }, | 288 | {"seashell3", 205, 197, 191}, | ||
301 | { "seashell4", 139, 134, 130 }, | 289 | {"seashell4", 139, 134, 130}, | ||
302 | { "antiquewhite1", 255, 239, 219 }, | 290 | {"antiquewhite1", 255, 239, 219}, | ||
303 | { "antiquewhite2", 238, 223, 204 }, | 291 | {"antiquewhite2", 238, 223, 204}, | ||
304 | { "antiquewhite3", 205, 192, 176 }, | 292 | {"antiquewhite3", 205, 192, 176}, | ||
305 | { "antiquewhite4", 139, 131, 120 }, | 293 | {"antiquewhite4", 139, 131, 120}, | ||
306 | { "bisque1", 255, 228, 196 }, | 294 | {"bisque1", 255, 228, 196}, | ||
307 | { "bisque2", 238, 213, 183 }, | 295 | {"bisque2", 238, 213, 183}, | ||
308 | { "bisque3", 205, 183, 158 }, | 296 | {"bisque3", 205, 183, 158}, | ||
309 | { "bisque4", 139, 125, 107 }, | 297 | {"bisque4", 139, 125, 107}, | ||
310 | { "peachpuff1", 255, 218, 185 }, | 298 | {"peachpuff1", 255, 218, 185}, | ||
311 | { "peachpuff2", 238, 203, 173 }, | 299 | {"peachpuff2", 238, 203, 173}, | ||
312 | { "peachpuff3", 205, 175, 149 }, | 300 | {"peachpuff3", 205, 175, 149}, | ||
313 | { "peachpuff4", 139, 119, 101 }, | 301 | {"peachpuff4", 139, 119, 101}, | ||
314 | { "navajowhite1", 255, 222, 173 }, | 302 | {"navajowhite1", 255, 222, 173}, | ||
315 | { "navajowhite2", 238, 207, 161 }, | 303 | {"navajowhite2", 238, 207, 161}, | ||
316 | { "navajowhite3", 205, 179, 139 }, | 304 | {"navajowhite3", 205, 179, 139}, | ||
317 | { "navajowhite4", 139, 121, 94 }, | 305 | {"navajowhite4", 139, 121, 94}, | ||
318 | { "lemonchiffon1", 255, 250, 205 }, | 306 | {"lemonchiffon1", 255, 250, 205}, | ||
319 | { "lemonchiffon2", 238, 233, 191 }, | 307 | {"lemonchiffon2", 238, 233, 191}, | ||
320 | { "lemonchiffon3", 205, 201, 165 }, | 308 | {"lemonchiffon3", 205, 201, 165}, | ||
321 | { "lemonchiffon4", 139, 137, 112 }, | 309 | {"lemonchiffon4", 139, 137, 112}, | ||
322 | { "cornsilk1", 255, 248, 220 }, | 310 | {"cornsilk1", 255, 248, 220}, | ||
323 | { "cornsilk2", 238, 232, 205 }, | 311 | {"cornsilk2", 238, 232, 205}, | ||
324 | { "cornsilk3", 205, 200, 177 }, | 312 | {"cornsilk3", 205, 200, 177}, | ||
325 | { "cornsilk4", 139, 136, 120 }, | 313 | {"cornsilk4", 139, 136, 120}, | ||
326 | { "ivory1", 255, 255, 240 }, | 314 | {"ivory1", 255, 255, 240}, | ||
327 | { "ivory2", 238, 238, 224 }, | 315 | {"ivory2", 238, 238, 224}, | ||
328 | { "ivory3", 205, 205, 193 }, | 316 | {"ivory3", 205, 205, 193}, | ||
329 | { "ivory4", 139, 139, 131 }, | 317 | {"ivory4", 139, 139, 131}, | ||
330 | { "honeydew1", 240, 255, 240 }, | 318 | {"honeydew1", 240, 255, 240}, | ||
331 | { "honeydew2", 224, 238, 224 }, | 319 | {"honeydew2", 224, 238, 224}, | ||
332 | { "honeydew3", 193, 205, 193 }, | 320 | {"honeydew3", 193, 205, 193}, | ||
333 | { "honeydew4", 131, 139, 131 }, | 321 | {"honeydew4", 131, 139, 131}, | ||
334 | { "lavenderblush1", 255, 240, 245 }, | 322 | {"lavenderblush1", 255, 240, 245}, | ||
335 | { "lavenderblush2", 238, 224, 229 }, | 323 | {"lavenderblush2", 238, 224, 229}, | ||
336 | { "lavenderblush3", 205, 193, 197 }, | 324 | {"lavenderblush3", 205, 193, 197}, | ||
337 | { "lavenderblush4", 139, 131, 134 }, | 325 | {"lavenderblush4", 139, 131, 134}, | ||
338 | { "mistyrose1", 255, 228, 225 }, | 326 | {"mistyrose1", 255, 228, 225}, | ||
339 | { "mistyrose2", 238, 213, 210 }, | 327 | {"mistyrose2", 238, 213, 210}, | ||
340 | { "mistyrose3", 205, 183, 181 }, | 328 | {"mistyrose3", 205, 183, 181}, | ||
341 | { "mistyrose4", 139, 125, 123 }, | 329 | {"mistyrose4", 139, 125, 123}, | ||
342 | { "azure1", 240, 255, 255 }, | 330 | {"azure1", 240, 255, 255}, | ||
343 | { "azure2", 224, 238, 238 }, | 331 | {"azure2", 224, 238, 238}, | ||
344 | { "azure3", 193, 205, 205 }, | 332 | {"azure3", 193, 205, 205}, | ||
345 | { "azure4", 131, 139, 139 }, | 333 | {"azure4", 131, 139, 139}, | ||
346 | { "slateblue1", 131, 111, 255 }, | 334 | {"slateblue1", 131, 111, 255}, | ||
347 | { "slateblue2", 122, 103, 238 }, | 335 | {"slateblue2", 122, 103, 238}, | ||
348 | { "slateblue3", 105, 89, 205 }, | 336 | {"slateblue3", 105, 89, 205}, | ||
349 | { "slateblue4", 71, 60, 139 }, | 337 | {"slateblue4", 71, 60, 139}, | ||
350 | { "royalblue1", 72, 118, 255 }, | 338 | {"royalblue1", 72, 118, 255}, | ||
351 | { "royalblue2", 67, 110, 238 }, | 339 | {"royalblue2", 67, 110, 238}, | ||
352 | { "royalblue3", 58, 95, 205 }, | 340 | {"royalblue3", 58, 95, 205}, | ||
353 | { "royalblue4", 39, 64, 139 }, | 341 | {"royalblue4", 39, 64, 139}, | ||
354 | { "blue1", 0, 0, 255 }, | 342 | {"blue1", 0, 0, 255}, | ||
355 | { "blue2", 0, 0, 238 }, | 343 | {"blue2", 0, 0, 238}, | ||
356 | { "blue3", 0, 0, 205 }, | 344 | {"blue3", 0, 0, 205}, | ||
357 | { "blue4", 0, 0, 139 }, | 345 | {"blue4", 0, 0, 139}, | ||
358 | { "dodgerblue1", 30, 144, 255 }, | 346 | {"dodgerblue1", 30, 144, 255}, | ||
359 | { "dodgerblue2", 28, 134, 238 }, | 347 | {"dodgerblue2", 28, 134, 238}, | ||
360 | { "dodgerblue3", 24, 116, 205 }, | 348 | {"dodgerblue3", 24, 116, 205}, | ||
361 | { "dodgerblue4", 16, 78, 139 }, | 349 | {"dodgerblue4", 16, 78, 139}, | ||
362 | { "steelblue1", 99, 184, 255 }, | 350 | {"steelblue1", 99, 184, 255}, | ||
363 | { "steelblue2", 92, 172, 238 }, | 351 | {"steelblue2", 92, 172, 238}, | ||
364 | { "steelblue3", 79, 148, 205 }, | 352 | {"steelblue3", 79, 148, 205}, | ||
365 | { "steelblue4", 54, 100, 139 }, | 353 | {"steelblue4", 54, 100, 139}, | ||
366 | { "deepskyblue1", 0, 191, 255 }, | 354 | {"deepskyblue1", 0, 191, 255}, | ||
367 | { "deepskyblue2", 0, 178, 238 }, | 355 | {"deepskyblue2", 0, 178, 238}, | ||
368 | { "deepskyblue3", 0, 154, 205 }, | 356 | {"deepskyblue3", 0, 154, 205}, | ||
369 | { "deepskyblue4", 0, 104, 139 }, | 357 | {"deepskyblue4", 0, 104, 139}, | ||
370 | { "skyblue1", 135, 206, 255 }, | 358 | {"skyblue1", 135, 206, 255}, | ||
371 | { "skyblue2", 126, 192, 238 }, | 359 | {"skyblue2", 126, 192, 238}, | ||
372 | { "skyblue3", 108, 166, 205 }, | 360 | {"skyblue3", 108, 166, 205}, | ||
373 | { "skyblue4", 74, 112, 139 }, | 361 | {"skyblue4", 74, 112, 139}, | ||
374 | { "lightskyblue1", 176, 226, 255 }, | 362 | {"lightskyblue1", 176, 226, 255}, | ||
375 | { "lightskyblue2", 164, 211, 238 }, | 363 | {"lightskyblue2", 164, 211, 238}, | ||
376 | { "lightskyblue3", 141, 182, 205 }, | 364 | {"lightskyblue3", 141, 182, 205}, | ||
377 | { "lightskyblue4", 96, 123, 139 }, | 365 | {"lightskyblue4", 96, 123, 139}, | ||
378 | { "slategray1", 198, 226, 255 }, | 366 | {"slategray1", 198, 226, 255}, | ||
379 | { "slategray2", 185, 211, 238 }, | 367 | {"slategray2", 185, 211, 238}, | ||
380 | { "slategray3", 159, 182, 205 }, | 368 | {"slategray3", 159, 182, 205}, | ||
381 | { "slategray4", 108, 123, 139 }, | 369 | {"slategray4", 108, 123, 139}, | ||
382 | { "lightsteelblue1", 202, 225, 255 }, | 370 | {"lightsteelblue1", 202, 225, 255}, | ||
383 | { "lightsteelblue2", 188, 210, 238 }, | 371 | {"lightsteelblue2", 188, 210, 238}, | ||
384 | { "lightsteelblue3", 162, 181, 205 }, | 372 | {"lightsteelblue3", 162, 181, 205}, | ||
385 | { "lightsteelblue4", 110, 123, 139 }, | 373 | {"lightsteelblue4", 110, 123, 139}, | ||
386 | { "lightblue1", 191, 239, 255 }, | 374 | {"lightblue1", 191, 239, 255}, | ||
387 | { "lightblue2", 178, 223, 238 }, | 375 | {"lightblue2", 178, 223, 238}, | ||
388 | { "lightblue3", 154, 192, 205 }, | 376 | {"lightblue3", 154, 192, 205}, | ||
389 | { "lightblue4", 104, 131, 139 }, | 377 | {"lightblue4", 104, 131, 139}, | ||
390 | { "lightcyan1", 224, 255, 255 }, | 378 | {"lightcyan1", 224, 255, 255}, | ||
391 | { "lightcyan2", 209, 238, 238 }, | 379 | {"lightcyan2", 209, 238, 238}, | ||
392 | { "lightcyan3", 180, 205, 205 }, | 380 | {"lightcyan3", 180, 205, 205}, | ||
393 | { "lightcyan4", 122, 139, 139 }, | 381 | {"lightcyan4", 122, 139, 139}, | ||
394 | { "paleturquoise1", 187, 255, 255 }, | 382 | {"paleturquoise1", 187, 255, 255}, | ||
395 | { "paleturquoise2", 174, 238, 238 }, | 383 | {"paleturquoise2", 174, 238, 238}, | ||
396 | { "paleturquoise3", 150, 205, 205 }, | 384 | {"paleturquoise3", 150, 205, 205}, | ||
397 | { "paleturquoise4", 102, 139, 139 }, | 385 | {"paleturquoise4", 102, 139, 139}, | ||
398 | { "cadetblue1", 152, 245, 255 }, | 386 | {"cadetblue1", 152, 245, 255}, | ||
399 | { "cadetblue2", 142, 229, 238 }, | 387 | {"cadetblue2", 142, 229, 238}, | ||
400 | { "cadetblue3", 122, 197, 205 }, | 388 | {"cadetblue3", 122, 197, 205}, | ||
401 | { "cadetblue4", 83, 134, 139 }, | 389 | {"cadetblue4", 83, 134, 139}, | ||
402 | { "turquoise1", 0, 245, 255 }, | 390 | {"turquoise1", 0, 245, 255}, | ||
403 | { "turquoise2", 0, 229, 238 }, | 391 | {"turquoise2", 0, 229, 238}, | ||
404 | { "turquoise3", 0, 197, 205 }, | 392 | {"turquoise3", 0, 197, 205}, | ||
405 | { "turquoise4", 0, 134, 139 }, | 393 | {"turquoise4", 0, 134, 139}, | ||
406 | { "cyan1", 0, 255, 255 }, | 394 | {"cyan1", 0, 255, 255}, | ||
407 | { "cyan2", 0, 238, 238 }, | 395 | {"cyan2", 0, 238, 238}, | ||
408 | { "cyan3", 0, 205, 205 }, | 396 | {"cyan3", 0, 205, 205}, | ||
409 | { "cyan4", 0, 139, 139 }, | 397 | {"cyan4", 0, 139, 139}, | ||
410 | { "darkslategray1", 151, 255, 255 }, | 398 | {"darkslategray1", 151, 255, 255}, | ||
411 | { "darkslategray2", 141, 238, 238 }, | 399 | {"darkslategray2", 141, 238, 238}, | ||
412 | { "darkslategray3", 121, 205, 205 }, | 400 | {"darkslategray3", 121, 205, 205}, | ||
413 | { "darkslategray4", 82, 139, 139 }, | 401 | {"darkslategray4", 82, 139, 139}, | ||
414 | { "aquamarine1", 127, 255, 212 }, | 402 | {"aquamarine1", 127, 255, 212}, | ||
415 | { "aquamarine2", 118, 238, 198 }, | 403 | {"aquamarine2", 118, 238, 198}, | ||
416 | { "aquamarine3", 102, 205, 170 }, | 404 | {"aquamarine3", 102, 205, 170}, | ||
417 | { "aquamarine4", 69, 139, 116 }, | 405 | {"aquamarine4", 69, 139, 116}, | ||
418 | { "darkseagreen1", 193, 255, 193 }, | 406 | {"darkseagreen1", 193, 255, 193}, | ||
419 | { "darkseagreen2", 180, 238, 180 }, | 407 | {"darkseagreen2", 180, 238, 180}, | ||
420 | { "darkseagreen3", 155, 205, 155 }, | 408 | {"darkseagreen3", 155, 205, 155}, | ||
421 | { "darkseagreen4", 105, 139, 105 }, | 409 | {"darkseagreen4", 105, 139, 105}, | ||
422 | { "seagreen1", 84, 255, 159 }, | 410 | {"seagreen1", 84, 255, 159}, | ||
423 | { "seagreen2", 78, 238, 148 }, | 411 | {"seagreen2", 78, 238, 148}, | ||
424 | { "seagreen3", 67, 205, 128 }, | 412 | {"seagreen3", 67, 205, 128}, | ||
425 | { "seagreen4", 46, 139, 87 }, | 413 | {"seagreen4", 46, 139, 87}, | ||
426 | { "palegreen1", 154, 255, 154 }, | 414 | {"palegreen1", 154, 255, 154}, | ||
427 | { "palegreen2", 144, 238, 144 }, | 415 | {"palegreen2", 144, 238, 144}, | ||
428 | { "palegreen3", 124, 205, 124 }, | 416 | {"palegreen3", 124, 205, 124}, | ||
429 | { "palegreen4", 84, 139, 84 }, | 417 | {"palegreen4", 84, 139, 84}, | ||
430 | { "springgreen1", 0, 255, 127 }, | 418 | {"springgreen1", 0, 255, 127}, | ||
431 | { "springgreen2", 0, 238, 118 }, | 419 | {"springgreen2", 0, 238, 118}, | ||
432 | { "springgreen3", 0, 205, 102 }, | 420 | {"springgreen3", 0, 205, 102}, | ||
433 | { "springgreen4", 0, 139, 69 }, | 421 | {"springgreen4", 0, 139, 69}, | ||
434 | { "green1", 0, 255, 0 }, | 422 | {"green1", 0, 255, 0}, | ||
435 | { "green2", 0, 238, 0 }, | 423 | {"green2", 0, 238, 0}, | ||
436 | { "green3", 0, 205, 0 }, | 424 | {"green3", 0, 205, 0}, | ||
437 | { "green4", 0, 139, 0 }, | 425 | {"green4", 0, 139, 0}, | ||
438 | { "chartreuse1", 127, 255, 0 }, | 426 | {"chartreuse1", 127, 255, 0}, | ||
439 | { "chartreuse2", 118, 238, 0 }, | 427 | {"chartreuse2", 118, 238, 0}, | ||
440 | { "chartreuse3", 102, 205, 0 }, | 428 | {"chartreuse3", 102, 205, 0}, | ||
441 | { "chartreuse4", 69, 139, 0 }, | 429 | {"chartreuse4", 69, 139, 0}, | ||
442 | { "olivedrab1", 192, 255, 62 }, | 430 | {"olivedrab1", 192, 255, 62}, | ||
443 | { "olivedrab2", 179, 238, 58 }, | 431 | {"olivedrab2", 179, 238, 58}, | ||
444 | { "olivedrab3", 154, 205, 50 }, | 432 | {"olivedrab3", 154, 205, 50}, | ||
445 | { "olivedrab4", 105, 139, 34 }, | 433 | {"olivedrab4", 105, 139, 34}, | ||
446 | { "darkolivegreen1", 202, 255, 112 }, | 434 | {"darkolivegreen1", 202, 255, 112}, | ||
447 | { "darkolivegreen2", 188, 238, 104 }, | 435 | {"darkolivegreen2", 188, 238, 104}, | ||
448 | { "darkolivegreen3", 162, 205, 90 }, | 436 | {"darkolivegreen3", 162, 205, 90}, | ||
449 | { "darkolivegreen4", 110, 139, 61 }, | 437 | {"darkolivegreen4", 110, 139, 61}, | ||
450 | { "khaki1", 255, 246, 143 }, | 438 | {"khaki1", 255, 246, 143}, | ||
451 | { "khaki2", 238, 230, 133 }, | 439 | {"khaki2", 238, 230, 133}, | ||
452 | { "khaki3", 205, 198, 115 }, | 440 | {"khaki3", 205, 198, 115}, | ||
453 | { "khaki4", 139, 134, 78 }, | 441 | {"khaki4", 139, 134, 78}, | ||
454 | { "lightgoldenrod1", 255, 236, 139 }, | 442 | {"lightgoldenrod1", 255, 236, 139}, | ||
455 | { "lightgoldenrod2", 238, 220, 130 }, | 443 | {"lightgoldenrod2", 238, 220, 130}, | ||
456 | { "lightgoldenrod3", 205, 190, 112 }, | 444 | {"lightgoldenrod3", 205, 190, 112}, | ||
457 | { "lightgoldenrod4", 139, 129, 76 }, | 445 | {"lightgoldenrod4", 139, 129, 76}, | ||
458 | { "lightyellow1", 255, 255, 224 }, | 446 | {"lightyellow1", 255, 255, 224}, | ||
459 | { "lightyellow2", 238, 238, 209 }, | 447 | {"lightyellow2", 238, 238, 209}, | ||
460 | { "lightyellow3", 205, 205, 180 }, | 448 | {"lightyellow3", 205, 205, 180}, | ||
461 | { "lightyellow4", 139, 139, 122 }, | 449 | {"lightyellow4", 139, 139, 122}, | ||
462 | { "yellow1", 255, 255, 0 }, | 450 | {"yellow1", 255, 255, 0}, | ||
463 | { "yellow2", 238, 238, 0 }, | 451 | {"yellow2", 238, 238, 0}, | ||
464 | { "yellow3", 205, 205, 0 }, | 452 | {"yellow3", 205, 205, 0}, | ||
465 | { "yellow4", 139, 139, 0 }, | 453 | {"yellow4", 139, 139, 0}, | ||
466 | { "gold1", 255, 215, 0 }, | 454 | {"gold1", 255, 215, 0}, | ||
467 | { "gold2", 238, 201, 0 }, | 455 | {"gold2", 238, 201, 0}, | ||
468 | { "gold3", 205, 173, 0 }, | 456 | {"gold3", 205, 173, 0}, | ||
469 | { "gold4", 139, 117, 0 }, | 457 | {"gold4", 139, 117, 0}, | ||
470 | { "goldenrod1", 255, 193, 37 }, | 458 | {"goldenrod1", 255, 193, 37}, | ||
471 | { "goldenrod2", 238, 180, 34 }, | 459 | {"goldenrod2", 238, 180, 34}, | ||
472 | { "goldenrod3", 205, 155, 29 }, | 460 | {"goldenrod3", 205, 155, 29}, | ||
473 | { "goldenrod4", 139, 105, 20 }, | 461 | {"goldenrod4", 139, 105, 20}, | ||
474 | { "darkgoldenrod1", 255, 185, 15 }, | 462 | {"darkgoldenrod1", 255, 185, 15}, | ||
475 | { "darkgoldenrod2", 238, 173, 14 }, | 463 | {"darkgoldenrod2", 238, 173, 14}, | ||
476 | { "darkgoldenrod3", 205, 149, 12 }, | 464 | {"darkgoldenrod3", 205, 149, 12}, | ||
477 | { "darkgoldenrod4", 139, 101, 8 }, | 465 | {"darkgoldenrod4", 139, 101, 8}, | ||
478 | { "rosybrown1", 255, 193, 193 }, | 466 | {"rosybrown1", 255, 193, 193}, | ||
479 | { "rosybrown2", 238, 180, 180 }, | 467 | {"rosybrown2", 238, 180, 180}, | ||
480 | { "rosybrown3", 205, 155, 155 }, | 468 | {"rosybrown3", 205, 155, 155}, | ||
481 | { "rosybrown4", 139, 105, 105 }, | 469 | {"rosybrown4", 139, 105, 105}, | ||
482 | { "indianred1", 255, 106, 106 }, | 470 | {"indianred1", 255, 106, 106}, | ||
483 | { "indianred2", 238, 99, 99 }, | 471 | {"indianred2", 238, 99, 99}, | ||
484 | { "indianred3", 205, 85, 85 }, | 472 | {"indianred3", 205, 85, 85}, | ||
485 | { "indianred4", 139, 58, 58 }, | 473 | {"indianred4", 139, 58, 58}, | ||
486 | { "sienna1", 255, 130, 71 }, | 474 | {"sienna1", 255, 130, 71}, | ||
487 | { "sienna2", 238, 121, 66 }, | 475 | {"sienna2", 238, 121, 66}, | ||
488 | { "sienna3", 205, 104, 57 }, | 476 | {"sienna3", 205, 104, 57}, | ||
489 | { "sienna4", 139, 71, 38 }, | 477 | {"sienna4", 139, 71, 38}, | ||
490 | { "burlywood1", 255, 211, 155 }, | 478 | {"burlywood1", 255, 211, 155}, | ||
491 | { "burlywood2", 238, 197, 145 }, | 479 | {"burlywood2", 238, 197, 145}, | ||
492 | { "burlywood3", 205, 170, 125 }, | 480 | {"burlywood3", 205, 170, 125}, | ||
493 | { "burlywood4", 139, 115, 85 }, | 481 | {"burlywood4", 139, 115, 85}, | ||
494 | { "wheat1", 255, 231, 186 }, | 482 | {"wheat1", 255, 231, 186}, | ||
495 | { "wheat2", 238, 216, 174 }, | 483 | {"wheat2", 238, 216, 174}, | ||
496 | { "wheat3", 205, 186, 150 }, | 484 | {"wheat3", 205, 186, 150}, | ||
497 | { "wheat4", 139, 126, 102 }, | 485 | {"wheat4", 139, 126, 102}, | ||
498 | { "tan1", 255, 165, 79 }, | 486 | {"tan1", 255, 165, 79}, | ||
499 | { "tan2", 238, 154, 73 }, | 487 | {"tan2", 238, 154, 73}, | ||
500 | { "tan3", 205, 133, 63 }, | 488 | {"tan3", 205, 133, 63}, | ||
501 | { "tan4", 139, 90, 43 }, | 489 | {"tan4", 139, 90, 43}, | ||
502 | { "chocolate1", 255, 127, 36 }, | 490 | {"chocolate1", 255, 127, 36}, | ||
503 | { "chocolate2", 238, 118, 33 }, | 491 | {"chocolate2", 238, 118, 33}, | ||
504 | { "chocolate3", 205, 102, 29 }, | 492 | {"chocolate3", 205, 102, 29}, | ||
505 | { "chocolate4", 139, 69, 19 }, | 493 | {"chocolate4", 139, 69, 19}, | ||
506 | { "firebrick1", 255, 48, 48 }, | 494 | {"firebrick1", 255, 48, 48}, | ||
507 | { "firebrick2", 238, 44, 44 }, | 495 | {"firebrick2", 238, 44, 44}, | ||
508 | { "firebrick3", 205, 38, 38 }, | 496 | {"firebrick3", 205, 38, 38}, | ||
509 | { "firebrick4", 139, 26, 26 }, | 497 | {"firebrick4", 139, 26, 26}, | ||
510 | { "brown1", 255, 64, 64 }, | 498 | {"brown1", 255, 64, 64}, | ||
511 | { "brown2", 238, 59, 59 }, | 499 | {"brown2", 238, 59, 59}, | ||
512 | { "brown3", 205, 51, 51 }, | 500 | {"brown3", 205, 51, 51}, | ||
513 | { "brown4", 139, 35, 35 }, | 501 | {"brown4", 139, 35, 35}, | ||
514 | { "salmon1", 255, 140, 105 }, | 502 | {"salmon1", 255, 140, 105}, | ||
515 | { "salmon2", 238, 130, 98 }, | 503 | {"salmon2", 238, 130, 98}, | ||
516 | { "salmon3", 205, 112, 84 }, | 504 | {"salmon3", 205, 112, 84}, | ||
517 | { "salmon4", 139, 76, 57 }, | 505 | {"salmon4", 139, 76, 57}, | ||
518 | { "lightsalmon1", 255, 160, 122 }, | 506 | {"lightsalmon1", 255, 160, 122}, | ||
519 | { "lightsalmon2", 238, 149, 114 }, | 507 | {"lightsalmon2", 238, 149, 114}, | ||
520 | { "lightsalmon3", 205, 129, 98 }, | 508 | {"lightsalmon3", 205, 129, 98}, | ||
521 | { "lightsalmon4", 139, 87, 66 }, | 509 | {"lightsalmon4", 139, 87, 66}, | ||
522 | { "orange1", 255, 165, 0 }, | 510 | {"orange1", 255, 165, 0}, | ||
523 | { "orange2", 238, 154, 0 }, | 511 | {"orange2", 238, 154, 0}, | ||
524 | { "orange3", 205, 133, 0 }, | 512 | {"orange3", 205, 133, 0}, | ||
525 | { "orange4", 139, 90, 0 }, | 513 | {"orange4", 139, 90, 0}, | ||
526 | { "darkorange1", 255, 127, 0 }, | 514 | {"darkorange1", 255, 127, 0}, | ||
527 | { "darkorange2", 238, 118, 0 }, | 515 | {"darkorange2", 238, 118, 0}, | ||
528 | { "darkorange3", 205, 102, 0 }, | 516 | {"darkorange3", 205, 102, 0}, | ||
529 | { "darkorange4", 139, 69, 0 }, | 517 | {"darkorange4", 139, 69, 0}, | ||
530 | { "coral1", 255, 114, 86 }, | 518 | {"coral1", 255, 114, 86}, | ||
531 | { "coral2", 238, 106, 80 }, | 519 | {"coral2", 238, 106, 80}, | ||
532 | { "coral3", 205, 91, 69 }, | 520 | {"coral3", 205, 91, 69}, | ||
533 | { "coral4", 139, 62, 47 }, | 521 | {"coral4", 139, 62, 47}, | ||
534 | { "tomato1", 255, 99, 71 }, | 522 | {"tomato1", 255, 99, 71}, | ||
535 | { "tomato2", 238, 92, 66 }, | 523 | {"tomato2", 238, 92, 66}, | ||
536 | { "tomato3", 205, 79, 57 }, | 524 | {"tomato3", 205, 79, 57}, | ||
537 | { "tomato4", 139, 54, 38 }, | 525 | {"tomato4", 139, 54, 38}, | ||
538 | { "orangered1", 255, 69, 0 }, | 526 | {"orangered1", 255, 69, 0}, | ||
539 | { "orangered2", 238, 64, 0 }, | 527 | {"orangered2", 238, 64, 0}, | ||
540 | { "orangered3", 205, 55, 0 }, | 528 | {"orangered3", 205, 55, 0}, | ||
541 | { "orangered4", 139, 37, 0 }, | 529 | {"orangered4", 139, 37, 0}, | ||
542 | { "red1", 255, 0, 0 }, | 530 | {"red1", 255, 0, 0}, | ||
543 | { "red2", 238, 0, 0 }, | 531 | {"red2", 238, 0, 0}, | ||
544 | { "red3", 205, 0, 0 }, | 532 | {"red3", 205, 0, 0}, | ||
545 | { "red4", 139, 0, 0 }, | 533 | {"red4", 139, 0, 0}, | ||
546 | { "deeppink1", 255, 20, 147 }, | 534 | {"deeppink1", 255, 20, 147}, | ||
547 | { "deeppink2", 238, 18, 137 }, | 535 | {"deeppink2", 238, 18, 137}, | ||
548 | { "deeppink3", 205, 16, 118 }, | 536 | {"deeppink3", 205, 16, 118}, | ||
549 | { "deeppink4", 139, 10, 80 }, | 537 | {"deeppink4", 139, 10, 80}, | ||
550 | { "hotpink1", 255, 110, 180 }, | 538 | {"hotpink1", 255, 110, 180}, | ||
551 | { "hotpink2", 238, 106, 167 }, | 539 | {"hotpink2", 238, 106, 167}, | ||
552 | { "hotpink3", 205, 96, 144 }, | 540 | {"hotpink3", 205, 96, 144}, | ||
553 | { "hotpink4", 139, 58, 98 }, | 541 | {"hotpink4", 139, 58, 98}, | ||
554 | { "pink1", 255, 181, 197 }, | 542 | {"pink1", 255, 181, 197}, | ||
555 | { "pink2", 238, 169, 184 }, | 543 | {"pink2", 238, 169, 184}, | ||
556 | { "pink3", 205, 145, 158 }, | 544 | {"pink3", 205, 145, 158}, | ||
557 | { "pink4", 139, 99, 108 }, | 545 | {"pink4", 139, 99, 108}, | ||
558 | { "lightpink1", 255, 174, 185 }, | 546 | {"lightpink1", 255, 174, 185}, | ||
559 | { "lightpink2", 238, 162, 173 }, | 547 | {"lightpink2", 238, 162, 173}, | ||
560 | { "lightpink3", 205, 140, 149 }, | 548 | {"lightpink3", 205, 140, 149}, | ||
561 | { "lightpink4", 139, 95, 101 }, | 549 | {"lightpink4", 139, 95, 101}, | ||
562 | { "palevioletred1", 255, 130, 171 }, | 550 | {"palevioletred1", 255, 130, 171}, | ||
563 | { "palevioletred2", 238, 121, 159 }, | 551 | {"palevioletred2", 238, 121, 159}, | ||
564 | { "palevioletred3", 205, 104, 137 }, | 552 | {"palevioletred3", 205, 104, 137}, | ||
565 | { "palevioletred4", 139, 71, 93 }, | 553 | {"palevioletred4", 139, 71, 93}, | ||
566 | { "maroon1", 255, 52, 179 }, | 554 | {"maroon1", 255, 52, 179}, | ||
567 | { "maroon2", 238, 48, 167 }, | 555 | {"maroon2", 238, 48, 167}, | ||
568 | { "maroon3", 205, 41, 144 }, | 556 | {"maroon3", 205, 41, 144}, | ||
569 | { "maroon4", 139, 28, 98 }, | 557 | {"maroon4", 139, 28, 98}, | ||
570 | { "violetred1", 255, 62, 150 }, | 558 | {"violetred1", 255, 62, 150}, | ||
571 | { "violetred2", 238, 58, 140 }, | 559 | {"violetred2", 238, 58, 140}, | ||
572 | { "violetred3", 205, 50, 120 }, | 560 | {"violetred3", 205, 50, 120}, | ||
573 | { "violetred4", 139, 34, 82 }, | 561 | {"violetred4", 139, 34, 82}, | ||
574 | { "magenta1", 255, 0, 255 }, | 562 | {"magenta1", 255, 0, 255}, | ||
575 | { "magenta2", 238, 0, 238 }, | 563 | {"magenta2", 238, 0, 238}, | ||
576 | { "magenta3", 205, 0, 205 }, | 564 | {"magenta3", 205, 0, 205}, | ||
577 | { "magenta4", 139, 0, 139 }, | 565 | {"magenta4", 139, 0, 139}, | ||
578 | { "orchid1", 255, 131, 250 }, | 566 | {"orchid1", 255, 131, 250}, | ||
579 | { "orchid2", 238, 122, 233 }, | 567 | {"orchid2", 238, 122, 233}, | ||
580 | { "orchid3", 205, 105, 201 }, | 568 | {"orchid3", 205, 105, 201}, | ||
581 | { "orchid4", 139, 71, 137 }, | 569 | {"orchid4", 139, 71, 137}, | ||
582 | { "plum1", 255, 187, 255 }, | 570 | {"plum1", 255, 187, 255}, | ||
583 | { "plum2", 238, 174, 238 }, | 571 | {"plum2", 238, 174, 238}, | ||
584 | { "plum3", 205, 150, 205 }, | 572 | {"plum3", 205, 150, 205}, | ||
585 | { "plum4", 139, 102, 139 }, | 573 | {"plum4", 139, 102, 139}, | ||
586 | { "mediumorchid1", 224, 102, 255 }, | 574 | {"mediumorchid1", 224, 102, 255}, | ||
587 | { "mediumorchid2", 209, 95, 238 }, | 575 | {"mediumorchid2", 209, 95, 238}, | ||
588 | { "mediumorchid3", 180, 82, 205 }, | 576 | {"mediumorchid3", 180, 82, 205}, | ||
589 | { "mediumorchid4", 122, 55, 139 }, | 577 | {"mediumorchid4", 122, 55, 139}, | ||
590 | { "darkorchid1", 191, 62, 255 }, | 578 | {"darkorchid1", 191, 62, 255}, | ||
591 | { "darkorchid2", 178, 58, 238 }, | 579 | {"darkorchid2", 178, 58, 238}, | ||
592 | { "darkorchid3", 154, 50, 205 }, | 580 | {"darkorchid3", 154, 50, 205}, | ||
593 | { "darkorchid4", 104, 34, 139 }, | 581 | {"darkorchid4", 104, 34, 139}, | ||
594 | { "purple1", 155, 48, 255 }, | 582 | {"purple1", 155, 48, 255}, | ||
595 | { "purple2", 145, 44, 238 }, | 583 | {"purple2", 145, 44, 238}, | ||
596 | { "purple3", 125, 38, 205 }, | 584 | {"purple3", 125, 38, 205}, | ||
597 | { "purple4", 85, 26, 139 }, | 585 | {"purple4", 85, 26, 139}, | ||
598 | { "mediumpurple1", 171, 130, 255 }, | 586 | {"mediumpurple1", 171, 130, 255}, | ||
599 | { "mediumpurple2", 159, 121, 238 }, | 587 | {"mediumpurple2", 159, 121, 238}, | ||
600 | { "mediumpurple3", 137, 104, 205 }, | 588 | {"mediumpurple3", 137, 104, 205}, | ||
601 | { "mediumpurple4", 93, 71, 139 }, | 589 | {"mediumpurple4", 93, 71, 139}, | ||
602 | { "thistle1", 255, 225, 255 }, | 590 | {"thistle1", 255, 225, 255}, | ||
603 | { "thistle2", 238, 210, 238 }, | 591 | {"thistle2", 238, 210, 238}, | ||
604 | { "thistle3", 205, 181, 205 }, | 592 | {"thistle3", 205, 181, 205}, | ||
605 | { "thistle4", 139, 123, 139 }, | 593 | {"thistle4", 139, 123, 139}, | ||
606 | { "gray0", 0, 0, 0 }, | 594 | {"gray0", 0, 0, 0}, | ||
607 | { "grey0", 0, 0, 0 }, | 595 | {"grey0", 0, 0, 0}, | ||
608 | { "gray1", 3, 3, 3 }, | 596 | {"gray1", 3, 3, 3}, | ||
609 | { "grey1", 3, 3, 3 }, | 597 | {"grey1", 3, 3, 3}, | ||
610 | { "gray2", 5, 5, 5 }, | 598 | {"gray2", 5, 5, 5}, | ||
611 | { "grey2", 5, 5, 5 }, | 599 | {"grey2", 5, 5, 5}, | ||
612 | { "gray3", 8, 8, 8 }, | 600 | {"gray3", 8, 8, 8}, | ||
613 | { "grey3", 8, 8, 8 }, | 601 | {"grey3", 8, 8, 8}, | ||
614 | { "gray4", 10, 10, 10 }, | 602 | {"gray4", 10, 10, 10}, | ||
615 | { "grey4", 10, 10, 10 }, | 603 | {"grey4", 10, 10, 10}, | ||
616 | { "gray5", 13, 13, 13 }, | 604 | {"gray5", 13, 13, 13}, | ||
617 | { "grey5", 13, 13, 13 }, | 605 | {"grey5", 13, 13, 13}, | ||
618 | { "gray6", 15, 15, 15 }, | 606 | {"gray6", 15, 15, 15}, | ||
619 | { "grey6", 15, 15, 15 }, | 607 | {"grey6", 15, 15, 15}, | ||
620 | { "gray7", 18, 18, 18 }, | 608 | {"gray7", 18, 18, 18}, | ||
621 | { "grey7", 18, 18, 18 }, | 609 | {"grey7", 18, 18, 18}, | ||
622 | { "gray8", 20, 20, 20 }, | 610 | {"gray8", 20, 20, 20}, | ||
623 | { "grey8", 20, 20, 20 }, | 611 | {"grey8", 20, 20, 20}, | ||
624 | { "gray9", 23, 23, 23 }, | 612 | {"gray9", 23, 23, 23}, | ||
625 | { "grey9", 23, 23, 23 }, | 613 | {"grey9", 23, 23, 23}, | ||
626 | { "gray10", 26, 26, 26 }, | 614 | {"gray10", 26, 26, 26}, | ||
627 | { "grey10", 26, 26, 26 }, | 615 | {"grey10", 26, 26, 26}, | ||
628 | { "gray11", 28, 28, 28 }, | 616 | {"gray11", 28, 28, 28}, | ||
629 | { "grey11", 28, 28, 28 }, | 617 | {"grey11", 28, 28, 28}, | ||
630 | { "gray12", 31, 31, 31 }, | 618 | {"gray12", 31, 31, 31}, | ||
631 | { "grey12", 31, 31, 31 }, | 619 | {"grey12", 31, 31, 31}, | ||
632 | { "gray13", 33, 33, 33 }, | 620 | {"gray13", 33, 33, 33}, | ||
633 | { "grey13", 33, 33, 33 }, | 621 | {"grey13", 33, 33, 33}, | ||
634 | { "gray14", 36, 36, 36 }, | 622 | {"gray14", 36, 36, 36}, | ||
635 | { "grey14", 36, 36, 36 }, | 623 | {"grey14", 36, 36, 36}, | ||
636 | { "gray15", 38, 38, 38 }, | 624 | {"gray15", 38, 38, 38}, | ||
637 | { "grey15", 38, 38, 38 }, | 625 | {"grey15", 38, 38, 38}, | ||
638 | { "gray16", 41, 41, 41 }, | 626 | {"gray16", 41, 41, 41}, | ||
639 | { "grey16", 41, 41, 41 }, | 627 | {"grey16", 41, 41, 41}, | ||
640 | { "gray17", 43, 43, 43 }, | 628 | {"gray17", 43, 43, 43}, | ||
641 | { "grey17", 43, 43, 43 }, | 629 | {"grey17", 43, 43, 43}, | ||
642 | { "gray18", 46, 46, 46 }, | 630 | {"gray18", 46, 46, 46}, | ||
643 | { "grey18", 46, 46, 46 }, | 631 | {"grey18", 46, 46, 46}, | ||
644 | { "gray19", 48, 48, 48 }, | 632 | {"gray19", 48, 48, 48}, | ||
645 | { "grey19", 48, 48, 48 }, | 633 | {"grey19", 48, 48, 48}, | ||
646 | { "gray20", 51, 51, 51 }, | 634 | {"gray20", 51, 51, 51}, | ||
647 | { "grey20", 51, 51, 51 }, | 635 | {"grey20", 51, 51, 51}, | ||
648 | { "gray21", 54, 54, 54 }, | 636 | {"gray21", 54, 54, 54}, | ||
649 | { "grey21", 54, 54, 54 }, | 637 | {"grey21", 54, 54, 54}, | ||
650 | { "gray22", 56, 56, 56 }, | 638 | {"gray22", 56, 56, 56}, | ||
651 | { "grey22", 56, 56, 56 }, | 639 | {"grey22", 56, 56, 56}, | ||
652 | { "gray23", 59, 59, 59 }, | 640 | {"gray23", 59, 59, 59}, | ||
653 | { "grey23", 59, 59, 59 }, | 641 | {"grey23", 59, 59, 59}, | ||
654 | { "gray24", 61, 61, 61 }, | 642 | {"gray24", 61, 61, 61}, | ||
655 | { "grey24", 61, 61, 61 }, | 643 | {"grey24", 61, 61, 61}, | ||
656 | { "gray25", 64, 64, 64 }, | 644 | {"gray25", 64, 64, 64}, | ||
657 | { "grey25", 64, 64, 64 }, | 645 | {"grey25", 64, 64, 64}, | ||
658 | { "gray26", 66, 66, 66 }, | 646 | {"gray26", 66, 66, 66}, | ||
659 | { "grey26", 66, 66, 66 }, | 647 | {"grey26", 66, 66, 66}, | ||
660 | { "gray27", 69, 69, 69 }, | 648 | {"gray27", 69, 69, 69}, | ||
661 | { "grey27", 69, 69, 69 }, | 649 | {"grey27", 69, 69, 69}, | ||
662 | { "gray28", 71, 71, 71 }, | 650 | {"gray28", 71, 71, 71}, | ||
663 | { "grey28", 71, 71, 71 }, | 651 | {"grey28", 71, 71, 71}, | ||
664 | { "gray29", 74, 74, 74 }, | 652 | {"gray29", 74, 74, 74}, | ||
665 | { "grey29", 74, 74, 74 }, | 653 | {"grey29", 74, 74, 74}, | ||
666 | { "gray30", 77, 77, 77 }, | 654 | {"gray30", 77, 77, 77}, | ||
667 | { "grey30", 77, 77, 77 }, | 655 | {"grey30", 77, 77, 77}, | ||
668 | { "gray31", 79, 79, 79 }, | 656 | {"gray31", 79, 79, 79}, | ||
669 | { "grey31", 79, 79, 79 }, | 657 | {"grey31", 79, 79, 79}, | ||
670 | { "gray32", 82, 82, 82 }, | 658 | {"gray32", 82, 82, 82}, | ||
671 | { "grey32", 82, 82, 82 }, | 659 | {"grey32", 82, 82, 82}, | ||
672 | { "gray33", 84, 84, 84 }, | 660 | {"gray33", 84, 84, 84}, | ||
673 | { "grey33", 84, 84, 84 }, | 661 | {"grey33", 84, 84, 84}, | ||
674 | { "gray34", 87, 87, 87 }, | 662 | {"gray34", 87, 87, 87}, | ||
675 | { "grey34", 87, 87, 87 }, | 663 | {"grey34", 87, 87, 87}, | ||
676 | { "gray35", 89, 89, 89 }, | 664 | {"gray35", 89, 89, 89}, | ||
677 | { "grey35", 89, 89, 89 }, | 665 | {"grey35", 89, 89, 89}, | ||
678 | { "gray36", 92, 92, 92 }, | 666 | {"gray36", 92, 92, 92}, | ||
679 | { "grey36", 92, 92, 92 }, | 667 | {"grey36", 92, 92, 92}, | ||
680 | { "gray37", 94, 94, 94 }, | 668 | {"gray37", 94, 94, 94}, | ||
681 | { "grey37", 94, 94, 94 }, | 669 | {"grey37", 94, 94, 94}, | ||
682 | { "gray38", 97, 97, 97 }, | 670 | {"gray38", 97, 97, 97}, | ||
683 | { "grey38", 97, 97, 97 }, | 671 | {"grey38", 97, 97, 97}, | ||
684 | { "gray39", 99, 99, 99 }, | 672 | {"gray39", 99, 99, 99}, | ||
685 | { "grey39", 99, 99, 99 }, | 673 | {"grey39", 99, 99, 99}, | ||
686 | { "gray40", 102, 102, 102 }, | 674 | {"gray40", 102, 102, 102}, | ||
687 | { "grey40", 102, 102, 102 }, | 675 | {"grey40", 102, 102, 102}, | ||
688 | { "gray41", 105, 105, 105 }, | 676 | {"gray41", 105, 105, 105}, | ||
689 | { "grey41", 105, 105, 105 }, | 677 | {"grey41", 105, 105, 105}, | ||
690 | { "gray42", 107, 107, 107 }, | 678 | {"gray42", 107, 107, 107}, | ||
691 | { "grey42", 107, 107, 107 }, | 679 | {"grey42", 107, 107, 107}, | ||
692 | { "gray43", 110, 110, 110 }, | 680 | {"gray43", 110, 110, 110}, | ||
693 | { "grey43", 110, 110, 110 }, | 681 | {"grey43", 110, 110, 110}, | ||
694 | { "gray44", 112, 112, 112 }, | 682 | {"gray44", 112, 112, 112}, | ||
695 | { "grey44", 112, 112, 112 }, | 683 | {"grey44", 112, 112, 112}, | ||
696 | { "gray45", 115, 115, 115 }, | 684 | {"gray45", 115, 115, 115}, | ||
697 | { "grey45", 115, 115, 115 }, | 685 | {"grey45", 115, 115, 115}, | ||
698 | { "gray46", 117, 117, 117 }, | 686 | {"gray46", 117, 117, 117}, | ||
699 | { "grey46", 117, 117, 117 }, | 687 | {"grey46", 117, 117, 117}, | ||
700 | { "gray47", 120, 120, 120 }, | 688 | {"gray47", 120, 120, 120}, | ||
701 | { "grey47", 120, 120, 120 }, | 689 | {"grey47", 120, 120, 120}, | ||
702 | { "gray48", 122, 122, 122 }, | 690 | {"gray48", 122, 122, 122}, | ||
703 | { "grey48", 122, 122, 122 }, | 691 | {"grey48", 122, 122, 122}, | ||
704 | { "gray49", 125, 125, 125 }, | 692 | {"gray49", 125, 125, 125}, | ||
705 | { "grey49", 125, 125, 125 }, | 693 | {"grey49", 125, 125, 125}, | ||
706 | { "gray50", 127, 127, 127 }, | 694 | {"gray50", 127, 127, 127}, | ||
707 | { "grey50", 127, 127, 127 }, | 695 | {"grey50", 127, 127, 127}, | ||
708 | { "gray51", 130, 130, 130 }, | 696 | {"gray51", 130, 130, 130}, | ||
709 | { "grey51", 130, 130, 130 }, | 697 | {"grey51", 130, 130, 130}, | ||
710 | { "gray52", 133, 133, 133 }, | 698 | {"gray52", 133, 133, 133}, | ||
711 | { "grey52", 133, 133, 133 }, | 699 | {"grey52", 133, 133, 133}, | ||
712 | { "gray53", 135, 135, 135 }, | 700 | {"gray53", 135, 135, 135}, | ||
713 | { "grey53", 135, 135, 135 }, | 701 | {"grey53", 135, 135, 135}, | ||
714 | { "gray54", 138, 138, 138 }, | 702 | {"gray54", 138, 138, 138}, | ||
715 | { "grey54", 138, 138, 138 }, | 703 | {"grey54", 138, 138, 138}, | ||
716 | { "gray55", 140, 140, 140 }, | 704 | {"gray55", 140, 140, 140}, | ||
717 | { "grey55", 140, 140, 140 }, | 705 | {"grey55", 140, 140, 140}, | ||
718 | { "gray56", 143, 143, 143 }, | 706 | {"gray56", 143, 143, 143}, | ||
719 | { "grey56", 143, 143, 143 }, | 707 | {"grey56", 143, 143, 143}, | ||
720 | { "gray57", 145, 145, 145 }, | 708 | {"gray57", 145, 145, 145}, | ||
721 | { "grey57", 145, 145, 145 }, | 709 | {"grey57", 145, 145, 145}, | ||
722 | { "gray58", 148, 148, 148 }, | 710 | {"gray58", 148, 148, 148}, | ||
723 | { "grey58", 148, 148, 148 }, | 711 | {"grey58", 148, 148, 148}, | ||
724 | { "gray59", 150, 150, 150 }, | 712 | {"gray59", 150, 150, 150}, | ||
725 | { "grey59", 150, 150, 150 }, | 713 | {"grey59", 150, 150, 150}, | ||
726 | { "gray60", 153, 153, 153 }, | 714 | {"gray60", 153, 153, 153}, | ||
727 | { "grey60", 153, 153, 153 }, | 715 | {"grey60", 153, 153, 153}, | ||
728 | { "gray61", 156, 156, 156 }, | 716 | {"gray61", 156, 156, 156}, | ||
729 | { "grey61", 156, 156, 156 }, | 717 | {"grey61", 156, 156, 156}, | ||
730 | { "gray62", 158, 158, 158 }, | 718 | {"gray62", 158, 158, 158}, | ||
731 | { "grey62", 158, 158, 158 }, | 719 | {"grey62", 158, 158, 158}, | ||
732 | { "gray63", 161, 161, 161 }, | 720 | {"gray63", 161, 161, 161}, | ||
733 | { "grey63", 161, 161, 161 }, | 721 | {"grey63", 161, 161, 161}, | ||
734 | { "gray64", 163, 163, 163 }, | 722 | {"gray64", 163, 163, 163}, | ||
735 | { "grey64", 163, 163, 163 }, | 723 | {"grey64", 163, 163, 163}, | ||
736 | { "gray65", 166, 166, 166 }, | 724 | {"gray65", 166, 166, 166}, | ||
737 | { "grey65", 166, 166, 166 }, | 725 | {"grey65", 166, 166, 166}, | ||
738 | { "gray66", 168, 168, 168 }, | 726 | {"gray66", 168, 168, 168}, | ||
739 | { "grey66", 168, 168, 168 }, | 727 | {"grey66", 168, 168, 168}, | ||
740 | { "gray67", 171, 171, 171 }, | 728 | {"gray67", 171, 171, 171}, | ||
741 | { "grey67", 171, 171, 171 }, | 729 | {"grey67", 171, 171, 171}, | ||
742 | { "gray68", 173, 173, 173 }, | 730 | {"gray68", 173, 173, 173}, | ||
743 | { "grey68", 173, 173, 173 }, | 731 | {"grey68", 173, 173, 173}, | ||
744 | { "gray69", 176, 176, 176 }, | 732 | {"gray69", 176, 176, 176}, | ||
745 | { "grey69", 176, 176, 176 }, | 733 | {"grey69", 176, 176, 176}, | ||
746 | { "gray70", 179, 179, 179 }, | 734 | {"gray70", 179, 179, 179}, | ||
747 | { "grey70", 179, 179, 179 }, | 735 | {"grey70", 179, 179, 179}, | ||
748 | { "gray71", 181, 181, 181 }, | 736 | {"gray71", 181, 181, 181}, | ||
749 | { "grey71", 181, 181, 181 }, | 737 | {"grey71", 181, 181, 181}, | ||
750 | { "gray72", 184, 184, 184 }, | 738 | {"gray72", 184, 184, 184}, | ||
751 | { "grey72", 184, 184, 184 }, | 739 | {"grey72", 184, 184, 184}, | ||
752 | { "gray73", 186, 186, 186 }, | 740 | {"gray73", 186, 186, 186}, | ||
753 | { "grey73", 186, 186, 186 }, | 741 | {"grey73", 186, 186, 186}, | ||
754 | { "gray74", 189, 189, 189 }, | 742 | {"gray74", 189, 189, 189}, | ||
755 | { "grey74", 189, 189, 189 }, | 743 | {"grey74", 189, 189, 189}, | ||
756 | { "gray75", 191, 191, 191 }, | 744 | {"gray75", 191, 191, 191}, | ||
757 | { "grey75", 191, 191, 191 }, | 745 | {"grey75", 191, 191, 191}, | ||
758 | { "gray76", 194, 194, 194 }, | 746 | {"gray76", 194, 194, 194}, | ||
759 | { "grey76", 194, 194, 194 }, | 747 | {"grey76", 194, 194, 194}, | ||
760 | { "gray77", 196, 196, 196 }, | 748 | {"gray77", 196, 196, 196}, | ||
761 | { "grey77", 196, 196, 196 }, | 749 | {"grey77", 196, 196, 196}, | ||
762 | { "gray78", 199, 199, 199 }, | 750 | {"gray78", 199, 199, 199}, | ||
763 | { "grey78", 199, 199, 199 }, | 751 | {"grey78", 199, 199, 199}, | ||
764 | { "gray79", 201, 201, 201 }, | 752 | {"gray79", 201, 201, 201}, | ||
765 | { "grey79", 201, 201, 201 }, | 753 | {"grey79", 201, 201, 201}, | ||
766 | { "gray80", 204, 204, 204 }, | 754 | {"gray80", 204, 204, 204}, | ||
767 | { "grey80", 204, 204, 204 }, | 755 | {"grey80", 204, 204, 204}, | ||
768 | { "gray81", 207, 207, 207 }, | 756 | {"gray81", 207, 207, 207}, | ||
769 | { "grey81", 207, 207, 207 }, | 757 | {"grey81", 207, 207, 207}, | ||
770 | { "gray82", 209, 209, 209 }, | 758 | {"gray82", 209, 209, 209}, | ||
771 | { "grey82", 209, 209, 209 }, | 759 | {"grey82", 209, 209, 209}, | ||
772 | { "gray83", 212, 212, 212 }, | 760 | {"gray83", 212, 212, 212}, | ||
773 | { "grey83", 212, 212, 212 }, | 761 | {"grey83", 212, 212, 212}, | ||
774 | { "gray84", 214, 214, 214 }, | 762 | {"gray84", 214, 214, 214}, | ||
775 | { "grey84", 214, 214, 214 }, | 763 | {"grey84", 214, 214, 214}, | ||
776 | { "gray85", 217, 217, 217 }, | 764 | {"gray85", 217, 217, 217}, | ||
777 | { "grey85", 217, 217, 217 }, | 765 | {"grey85", 217, 217, 217}, | ||
778 | { "gray86", 219, 219, 219 }, | 766 | {"gray86", 219, 219, 219}, | ||
779 | { "grey86", 219, 219, 219 }, | 767 | {"grey86", 219, 219, 219}, | ||
780 | { "gray87", 222, 222, 222 }, | 768 | {"gray87", 222, 222, 222}, | ||
781 | { "grey87", 222, 222, 222 }, | 769 | {"grey87", 222, 222, 222}, | ||
782 | { "gray88", 224, 224, 224 }, | 770 | {"gray88", 224, 224, 224}, | ||
783 | { "grey88", 224, 224, 224 }, | 771 | {"grey88", 224, 224, 224}, | ||
784 | { "gray89", 227, 227, 227 }, | 772 | {"gray89", 227, 227, 227}, | ||
785 | { "grey89", 227, 227, 227 }, | 773 | {"grey89", 227, 227, 227}, | ||
786 | { "gray90", 229, 229, 229 }, | 774 | {"gray90", 229, 229, 229}, | ||
787 | { "grey90", 229, 229, 229 }, | 775 | {"grey90", 229, 229, 229}, | ||
788 | { "gray91", 232, 232, 232 }, | 776 | {"gray91", 232, 232, 232}, | ||
789 | { "grey91", 232, 232, 232 }, | 777 | {"grey91", 232, 232, 232}, | ||
790 | { "gray92", 235, 235, 235 }, | 778 | {"gray92", 235, 235, 235}, | ||
791 | { "grey92", 235, 235, 235 }, | 779 | {"grey92", 235, 235, 235}, | ||
792 | { "gray93", 237, 237, 237 }, | 780 | {"gray93", 237, 237, 237}, | ||
793 | { "grey93", 237, 237, 237 }, | 781 | {"grey93", 237, 237, 237}, | ||
794 | { "gray94", 240, 240, 240 }, | 782 | {"gray94", 240, 240, 240}, | ||
795 | { "grey94", 240, 240, 240 }, | 783 | {"grey94", 240, 240, 240}, | ||
796 | { "gray95", 242, 242, 242 }, | 784 | {"gray95", 242, 242, 242}, | ||
797 | { "grey95", 242, 242, 242 }, | 785 | {"grey95", 242, 242, 242}, | ||
798 | { "gray96", 245, 245, 245 }, | 786 | {"gray96", 245, 245, 245}, | ||
799 | { "grey96", 245, 245, 245 }, | 787 | {"grey96", 245, 245, 245}, | ||
800 | { "gray97", 247, 247, 247 }, | 788 | {"gray97", 247, 247, 247}, | ||
801 | { "grey97", 247, 247, 247 }, | 789 | {"grey97", 247, 247, 247}, | ||
802 | { "gray98", 250, 250, 250 }, | 790 | {"gray98", 250, 250, 250}, | ||
803 | { "grey98", 250, 250, 250 }, | 791 | {"grey98", 250, 250, 250}, | ||
804 | { "gray99", 252, 252, 252 }, | 792 | {"gray99", 252, 252, 252}, | ||
805 | { "grey99", 252, 252, 252 }, | 793 | {"grey99", 252, 252, 252}, | ||
806 | { "gray100", 255, 255, 255 }, | 794 | {"gray100", 255, 255, 255}, | ||
807 | { "grey100", 255, 255, 255 }, | 795 | {"grey100", 255, 255, 255}, | ||
808 | { nullptr, 0, 0, 0 } | 796 | {nullptr, 0, 0, 0}}; | ||
809 | }; | | |||
810 | 797 | | |||
811 | Dot2QtConsts::Dot2QtConsts() | 798 | Dot2QtConsts::Dot2QtConsts() | ||
812 | { | 799 | { | ||
813 | m_penStyles["solid"] = Qt::SolidLine; | 800 | m_penStyles["solid"] = Qt::SolidLine; | ||
814 | m_penStyles["dashed"] = Qt::DashLine; | 801 | m_penStyles["dashed"] = Qt::DashLine; | ||
815 | m_penStyles["dotted"] = Qt::DotLine; | 802 | m_penStyles["dotted"] = Qt::DotLine; | ||
816 | m_penStyles["invis"] = Qt::NoPen; | 803 | m_penStyles["invis"] = Qt::NoPen; | ||
817 | 804 | | |||
818 | m_colors["crimson"] = "#DC143C"; | 805 | m_colors["crimson"] = "#DC143C"; | ||
819 | m_colors["hot_pink"] = "#FF69B4"; | 806 | m_colors["hot_pink"] = "#FF69B4"; | ||
820 | m_colors["light_yellow"] = "#FFFFE0"; | 807 | m_colors["light_yellow"] = "#FFFFE0"; | ||
821 | m_colors["slate_blue"] = "#6A5ACD"; | 808 | m_colors["slate_blue"] = "#6A5ACD"; | ||
822 | 809 | | |||
823 | uint i = 0; | 810 | uint i = 0; | ||
824 | while (postscriptFontNames[i].input) | 811 | while (postscriptFontNames[i].input) { | ||
825 | { | | |||
826 | QFont font(postscriptFontNames[i].input); | 812 | QFont font(postscriptFontNames[i].input); | ||
827 | m_psFonts[postscriptFontNames[i].roman] = font; | 813 | m_psFonts[postscriptFontNames[i].roman] = font; | ||
828 | if (postscriptFontNames[i].italic) | 814 | if (postscriptFontNames[i].italic) { | ||
829 | { | 815 | QFont italic = font; | ||
830 | QFont italic = font; italic.setItalic(true); | 816 | italic.setItalic(true); | ||
831 | m_psFonts[postscriptFontNames[i].italic] = italic; | 817 | m_psFonts[postscriptFontNames[i].italic] = italic; | ||
832 | } | 818 | } | ||
833 | if (postscriptFontNames[i].bold) | 819 | if (postscriptFontNames[i].bold) { | ||
834 | { | 820 | QFont bold = font; | ||
835 | QFont bold = font; bold.setBold(true); | 821 | bold.setBold(true); | ||
836 | m_psFonts[postscriptFontNames[i].bold] = bold; | 822 | m_psFonts[postscriptFontNames[i].bold] = bold; | ||
837 | } | 823 | } | ||
838 | if (postscriptFontNames[i].boldItalic) | 824 | if (postscriptFontNames[i].boldItalic) { | ||
839 | { | | |||
840 | QFont boldItalic = font; | 825 | QFont boldItalic = font; | ||
841 | boldItalic.setItalic(true); | 826 | boldItalic.setItalic(true); | ||
842 | boldItalic.setBold(true); | 827 | boldItalic.setBold(true); | ||
843 | m_psFonts[postscriptFontNames[i].boldItalic] = boldItalic; | 828 | m_psFonts[postscriptFontNames[i].boldItalic] = boldItalic; | ||
844 | } | 829 | } | ||
845 | if (postscriptFontNames[i].light) | 830 | if (postscriptFontNames[i].light) { | ||
846 | { | 831 | QFont light = font; | ||
847 | QFont light = font; light.setWeight(QFont::Light); | 832 | light.setWeight(QFont::Light); | ||
848 | m_psFonts[postscriptFontNames[i].light] = light; | 833 | m_psFonts[postscriptFontNames[i].light] = light; | ||
849 | } | 834 | } | ||
850 | if (postscriptFontNames[i].lightItalic) | 835 | if (postscriptFontNames[i].lightItalic) { | ||
851 | { | | |||
852 | QFont lightItalic = font; | 836 | QFont lightItalic = font; | ||
853 | lightItalic.setWeight(QFont::Light); | 837 | lightItalic.setWeight(QFont::Light); | ||
854 | lightItalic.setItalic(true); | 838 | lightItalic.setItalic(true); | ||
855 | m_psFonts[postscriptFontNames[i].lightItalic] = lightItalic; | 839 | m_psFonts[postscriptFontNames[i].lightItalic] = lightItalic; | ||
856 | } | 840 | } | ||
857 | i++; | 841 | i++; | ||
858 | } | 842 | } | ||
859 | 843 | | |||
860 | uint j = 0; | 844 | uint j = 0; | ||
861 | while (color_lib[j].name) | 845 | while (color_lib[j].name) { | ||
862 | { | | |||
863 | // () << "Adding color " << color_lib[j].name; | 846 | // () << "Adding color " << color_lib[j].name; | ||
864 | m_qcolors[color_lib[j].name] = QColor(color_lib[j].r,color_lib[j].g,color_lib[j].b); | 847 | m_qcolors[color_lib[j].name] = QColor(color_lib[j].r, color_lib[j].g, color_lib[j].b); | ||
865 | j++; | 848 | j++; | ||
866 | } | 849 | } | ||
867 | } | 850 | } | ||
868 | 851 | | |||
869 | | ||||
870 | Dot2QtConsts::~Dot2QtConsts() | 852 | Dot2QtConsts::~Dot2QtConsts() | ||
871 | {} | 853 | { | ||
872 | 854 | } | |||
873 | 855 | | |||
874 | QColor Dot2QtConsts::qtColor(const QString& dotColor) const | 856 | QColor Dot2QtConsts::qtColor(const QString &dotColor) const | ||
875 | { | 857 | { | ||
876 | // () << "Dot2QtConsts::qtColor"; | 858 | // () << "Dot2QtConsts::qtColor"; | ||
877 | QColor color; | 859 | QColor color; | ||
878 | if (parse_numeric_color(qPrintable(dotColor), color)) | 860 | if (parse_numeric_color(qPrintable(dotColor), color)) { | ||
879 | { | | |||
880 | return color; | 861 | return color; | ||
881 | } | 862 | } else { | ||
882 | else | 863 | if (m_qcolors.find(dotColor) != m_qcolors.end()) { | ||
883 | { | | |||
884 | if (m_qcolors.find(dotColor) != m_qcolors.end()) | | |||
885 | { | | |||
886 | return (*m_qcolors.find(dotColor)); | 864 | return (*m_qcolors.find(dotColor)); | ||
887 | } | 865 | } | ||
888 | QColor res(dotColor); | 866 | QColor res(dotColor); | ||
889 | if (res.isValid()) | 867 | if (res.isValid()) { | ||
890 | { | | |||
891 | return res; | 868 | return res; | ||
892 | } | 869 | } else { | ||
893 | else | 870 | if (m_colors.find(dotColor) != m_colors.end()) { | ||
894 | { | | |||
895 | if (m_colors.find(dotColor) != m_colors.end()) | | |||
896 | { | | |||
897 | res = QColor((*m_colors.find(dotColor))); | 871 | res = QColor((*m_colors.find(dotColor))); | ||
898 | if (res.isValid()) | 872 | if (res.isValid()) { | ||
899 | { | | |||
900 | return res; | 873 | return res; | ||
901 | } | 874 | } else { | ||
902 | else | | |||
903 | { | | |||
904 | qCWarning(KGRAPHVIEWERLIB_LOG) << "Unknown stored DOT color '" << dotColor << "'. returning Qt black"; | 875 | qCWarning(KGRAPHVIEWERLIB_LOG) << "Unknown stored DOT color '" << dotColor << "'. returning Qt black"; | ||
905 | return Qt::black; | 876 | return Qt::black; | ||
906 | } | 877 | } | ||
907 | } | 878 | } else { | ||
908 | else | | |||
909 | { | | |||
910 | // qCWarning(KGRAPHVIEWERLIB_LOG) << "Unknown DOT color '" << dotColor << "'. returning Qt black"; | 879 | // qCWarning(KGRAPHVIEWERLIB_LOG) << "Unknown DOT color '" << dotColor << "'. returning Qt black"; | ||
911 | return Qt::black; | 880 | return Qt::black; | ||
912 | } | 881 | } | ||
913 | } | 882 | } | ||
914 | } | 883 | } | ||
915 | } | 884 | } | ||
916 | 885 | | |||
917 | Qt::PenStyle Dot2QtConsts::qtPenStyle(const QString& dotLineStyle) const | 886 | Qt::PenStyle Dot2QtConsts::qtPenStyle(const QString &dotLineStyle) const | ||
918 | { | 887 | { | ||
919 | if (m_penStyles.find(dotLineStyle) != m_penStyles.end()) | 888 | if (m_penStyles.find(dotLineStyle) != m_penStyles.end()) | ||
920 | return (*(m_penStyles.find(dotLineStyle))); | 889 | return (*(m_penStyles.find(dotLineStyle))); | ||
921 | else | 890 | else { | ||
922 | { | 891 | if (!dotLineStyle.left(12).isEmpty() && dotLineStyle.left(12) != "setlinewidth") | ||
923 | if (!dotLineStyle.left(12).isEmpty() | | |||
924 | && dotLineStyle.left(12) != "setlinewidth") | | |||
925 | qCWarning(KGRAPHVIEWERLIB_LOG) << "Unknown DOT line style '" << dotLineStyle << "'. returning Qt solid line"; | 892 | qCWarning(KGRAPHVIEWERLIB_LOG) << "Unknown DOT line style '" << dotLineStyle << "'. returning Qt solid line"; | ||
926 | return Qt::SolidLine; | 893 | return Qt::SolidLine; | ||
927 | } | 894 | } | ||
928 | } | 895 | } | ||
929 | 896 | | |||
930 | QFont Dot2QtConsts::qtFont(const QString& dotFont) const | 897 | QFont Dot2QtConsts::qtFont(const QString &dotFont) const | ||
931 | { | 898 | { | ||
932 | if (m_psFonts.find(dotFont) != m_psFonts.end()) | 899 | if (m_psFonts.find(dotFont) != m_psFonts.end()) | ||
933 | return (*(m_psFonts.find(dotFont))); | 900 | return (*(m_psFonts.find(dotFont))); | ||
934 | else | 901 | else { | ||
935 | { | | |||
936 | qCWarning(KGRAPHVIEWERLIB_LOG) << "Unknown DOT font '" << dotFont << "'. returning Qt default."; | 902 | qCWarning(KGRAPHVIEWERLIB_LOG) << "Unknown DOT font '" << dotFont << "'. returning Qt default."; | ||
937 | return QFont(QFont::substitute(dotFont)); | 903 | return QFont(QFont::substitute(dotFont)); | ||
938 | } | 904 | } | ||
939 | } | 905 | } | ||
940 | |