-
Notifications
You must be signed in to change notification settings - Fork 0
/
color.h
335 lines (333 loc) · 11.4 KB
/
color.h
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
/* X11 Color Names mapped to 16bit RGB
with 5-6-5 bit allocation:
| Red | Green | Blue |
|-------+-------+-------|
| 5 bit | 6 bit | 5 bit |
|-------+-------+-------|
*/
#define ANTIQUE_WHITE_1 0xFF7B
#define ANTIQUE_WHITE_2 0xEEF9
#define ANTIQUE_WHITE_3 0xCDF5
#define ANTIQUE_WHITE_4 0x8C0F
#define AQUAMARINE_1 0x7FFA
#define AQUAMARINE_2 0x7778
#define AQUAMARINE_3 0x6675
#define AQUAMARINE_4 0x444E
#define AZURE_1 0xEFFF
#define AZURE_2 0xDF7D
#define AZURE_3 0xBE79
#define AZURE_4 0x8451
#define BISQUE_1 0xFF18
#define BISQUE_2 0xEEB6
#define BISQUE_3 0xCDB3
#define BISQUE_4 0x8BED
#define BLACK 0x0000
#define BLUE_1 0x001F
#define BLUE_2 0x001D
#define BLUE_3 0x0019
#define BLUE_4 0x0011
#define BROWN_1 0xFA08
#define BROWN_2 0xE9C7
#define BROWN_3 0xC9A6
#define BROWN_4 0x8924
#define BURLYWOOD_1 0xFE93
#define BURLYWOOD_2 0xEE32
#define BURLYWOOD_3 0xCD4F
#define BURLYWOOD_4 0x8B8A
#define CADET_BLUE_1 0x979F
#define CADET_BLUE_2 0x8F3D
#define CADET_BLUE_3 0x7E39
#define CADET_BLUE_4 0x5431
#define CHARTREUSE_1 0x7FE0
#define CHARTREUSE_2 0x7760
#define CHARTREUSE_3 0x6660
#define CHARTREUSE_4 0x4440
#define CHOCOLATE_1 0xFBE4
#define CHOCOLATE_2 0xEBA4
#define CHOCOLATE_3 0xCB23
#define CHOCOLATE_4 0x8A22
#define CORAL_1 0xFB8A
#define CORAL_2 0xEB4A
#define CORAL_3 0xCAC8
#define CORAL_4 0x89E6
#define CORNSILK_1 0xFFBB
#define CORNSILK_2 0xEF39
#define CORNSILK_3 0xCE36
#define CORNSILK_4 0x8C4F
#define CYAN_1 0x07FF
#define CYAN_2 0x077D
#define CYAN_3 0x0679
#define CYAN_4 0x0451
#define DARK_GOLDENROD_1 0xFDC2
#define DARK_GOLDENROD_2 0xED62
#define DARK_GOLDENROD_3 0xCCA1
#define DARK_GOLDENROD_4 0x8B21
#define DARK_OLIVE_GREEN_1 0xCFEE
#define DARK_OLIVE_GREEN_2 0xBF6D
#define DARK_OLIVE_GREEN_3 0xA66B
#define DARK_OLIVE_GREEN_4 0x6C47
#define DARK_ORANGE_1 0xFBE0
#define DARK_ORANGE_2 0xEBA0
#define DARK_ORANGE_3 0xCB20
#define DARK_ORANGE_4 0x8A20
#define DARK_ORCHID_1 0xB9FF
#define DARK_ORCHID_2 0xB1DD
#define DARK_ORCHID_3 0x9999
#define DARK_ORCHID_4 0x6911
#define DARK_SEA_GREEN_1 0xBFF7
#define DARK_SEA_GREEN_2 0xB776
#define DARK_SEA_GREEN_3 0x9E73
#define DARK_SEA_GREEN_4 0x6C4D
#define DARK_SLATE_GRAY_1 0x97FF
#define DARK_SLATE_GRAY_2 0x8F7D
#define DARK_SLATE_GRAY_3 0x7E79
#define DARK_SLATE_GRAY_4 0x5451
#define DEEP_PINK_1 0xF8B2
#define DEEP_PINK_2 0xE891
#define DEEP_PINK_3 0xC88E
#define DEEP_PINK_4 0x886A
#define DEEP_SKY_BLUE_1 0x05FF
#define DEEP_SKY_BLUE_2 0x059D
#define DEEP_SKY_BLUE_3 0x04D9
#define DEEP_SKY_BLUE_4 0x0351
#define DODGER_BLUE_1 0x249F
#define DODGER_BLUE_2 0x1C3D
#define DODGER_BLUE_3 0x1BB9
#define DODGER_BLUE_4 0x1271
#define FIREBRICK_1 0xF986
#define FIREBRICK_2 0xE965
#define FIREBRICK_3 0xC925
#define FIREBRICK_4 0x88C3
#define GOLDENROD_1 0xFE04
#define GOLDENROD_2 0xED84
#define GOLDENROD_3 0xCCC3
#define GOLDENROD_4 0x8B42
#define GOLD_1 0xFEA0
#define GOLD_2 0xEE40
#define GOLD_3 0xCD60
#define GOLD_4 0x8BA0
#define GRAY_0 0xBDF7
#define GREEN_0 0x07E0
#define GREEN_1 0x07E0
#define GREEN_2 0x0760
#define GREEN_3 0x0660
#define GREEN_4 0x0440
#define GREY_0 0xBDF7
#define HONEYDEW_1 0xEFFD
#define HONEYDEW_2 0xDF7B
#define HONEYDEW_3 0xBE77
#define HONEYDEW_4 0x8450
#define HOT_PINK_1 0xFB76
#define HOT_PINK_2 0xEB54
#define HOT_PINK_3 0xCB12
#define HOT_PINK_4 0x89CC
#define INDIAN_RED_1 0xFB4D
#define INDIAN_RED_2 0xEB2C
#define INDIAN_RED_3 0xCAAA
#define INDIAN_RED_4 0x89C7
#define IVORY_1 0xFFFD
#define IVORY_2 0xEF7B
#define IVORY_3 0xCE77
#define IVORY_4 0x8C50
#define KHAKI_1 0xFFB1
#define KHAKI_2 0xEF30
#define KHAKI_3 0xCE2E
#define KHAKI_4 0x8C29
#define LAVENDER_BLUSH_1 0xFF7E
#define LAVENDER_BLUSH_2 0xEEFC
#define LAVENDER_BLUSH_3 0xCE18
#define LAVENDER_BLUSH_4 0x8C10
#define LEMON_CHIFFON_1 0xFFD9
#define LEMON_CHIFFON_2 0xEF37
#define LEMON_CHIFFON_3 0xCE54
#define LEMON_CHIFFON_4 0x8C4E
#define LIGHT_BLUE_1 0xBF7F
#define LIGHT_BLUE_2 0xB6FD
#define LIGHT_BLUE_3 0x9DF9
#define LIGHT_BLUE_4 0x6C11
#define LIGHT_CYAN_1 0xDFFF
#define LIGHT_CYAN_2 0xCF7D
#define LIGHT_CYAN_3 0xB679
#define LIGHT_CYAN_4 0x7C51
#define LIGHT_GOLDENROD_1 0xFF51
#define LIGHT_GOLDENROD_2 0xEED0
#define LIGHT_GOLDENROD_3 0xCDEE
#define LIGHT_GOLDENROD_4 0x8C09
#define LIGHT_PINK_1 0xFD76
#define LIGHT_PINK_2 0xED15
#define LIGHT_PINK_3 0xCC72
#define LIGHT_PINK_4 0x8AEC
#define LIGHT_SALMON_1 0xFD0F
#define LIGHT_SALMON_2 0xECAE
#define LIGHT_SALMON_3 0xCC0C
#define LIGHT_SALMON_4 0x8AA8
#define LIGHT_SKY_BLUE_1 0xAF1F
#define LIGHT_SKY_BLUE_2 0xA69D
#define LIGHT_SKY_BLUE_3 0x8DB9
#define LIGHT_SKY_BLUE_4 0x63D1
#define LIGHT_STEEL_BLUE_1 0xCF1F
#define LIGHT_STEEL_BLUE_2 0xBE9D
#define LIGHT_STEEL_BLUE_3 0xA5B9
#define LIGHT_STEEL_BLUE_4 0x6BD1
#define LIGHT_YELLOW_1 0xFFFB
#define LIGHT_YELLOW_2 0xEF79
#define LIGHT_YELLOW_3 0xCE76
#define LIGHT_YELLOW_4 0x8C4F
#define MAGENTA_1 0xF81F
#define MAGENTA_2 0xE81D
#define MAGENTA_3 0xC819
#define MAGENTA_4 0x8811
#define MAROON_0 0xA98C
#define MAROON_1 0xF9B6
#define MAROON_2 0xE994
#define MAROON_3 0xC952
#define MAROON_4 0x88EC
#define MEDIUM_ORCHID_1 0xDB3F
#define MEDIUM_ORCHID_2 0xCAFD
#define MEDIUM_ORCHID_3 0xB299
#define MEDIUM_ORCHID_4 0x79D1
#define MEDIUM_PURPLE_1 0xAC1F
#define MEDIUM_PURPLE_2 0x9BDD
#define MEDIUM_PURPLE_3 0x8B59
#define MEDIUM_PURPLE_4 0x5A51
#define MISTY_ROSE_1 0xFF1B
#define MISTY_ROSE_2 0xEEBA
#define MISTY_ROSE_3 0xCDB6
#define MISTY_ROSE_4 0x8BEF
#define NAVAJO_WHITE_1 0xFEF5
#define NAVAJO_WHITE_2 0xEE74
#define NAVAJO_WHITE_3 0xCD91
#define NAVAJO_WHITE_4 0x8BCB
#define OLIVE_DRAB_1 0xBFE8
#define OLIVE_DRAB_2 0xB767
#define OLIVE_DRAB_3 0x9E66
#define OLIVE_DRAB_4 0x6C44
#define ORANGE_1 0xFD20
#define ORANGE_2 0xECC0
#define ORANGE_3 0xCC20
#define ORANGE_4 0x8AC0
#define ORANGE_RED_1 0xFA20
#define ORANGE_RED_2 0xEA00
#define ORANGE_RED_3 0xC9C0
#define ORANGE_RED_4 0x8920
#define ORCHID_1 0xFC1E
#define ORCHID_2 0xEBDC
#define ORCHID_3 0xCB58
#define ORCHID_4 0x8A51
#define PALE_GREEN_1 0x9FF3
#define PALE_GREEN_2 0x9772
#define PALE_GREEN_3 0x7E6F
#define PALE_GREEN_4 0x544A
#define PALE_TURQUOISE_1 0xBFFF
#define PALE_TURQUOISE_2 0xAF7D
#define PALE_TURQUOISE_3 0x9679
#define PALE_TURQUOISE_4 0x6451
#define PALE_VIOLET_RED_1 0xFC15
#define PALE_VIOLET_RED_2 0xEBD3
#define PALE_VIOLET_RED_3 0xCB51
#define PALE_VIOLET_RED_4 0x8A4B
#define PEACH_PUFF_1 0xFED6
#define PEACH_PUFF_2 0xEE55
#define PEACH_PUFF_3 0xCD72
#define PEACH_PUFF_4 0x8BAC
#define PINK_1 0xFDB8
#define PINK_2 0xED56
#define PINK_3 0xCC93
#define PINK_4 0x8B2D
#define PLUM_1 0xFDDF
#define PLUM_2 0xED7D
#define PLUM_3 0xCCB9
#define PLUM_4 0x8B31
#define PURPLE_1 0x999F
#define PURPLE_2 0x917D
#define PURPLE_3 0x7939
#define PURPLE_4 0x50D1
#define RED_1 0xF800
#define RED_2 0xE800
#define RED_3 0xC800
#define RED_4 0x8800
#define ROSY_BROWN_1 0xFE17
#define ROSY_BROWN_2 0xED96
#define ROSY_BROWN_3 0xCCD3
#define ROSY_BROWN_4 0x8B4D
#define ROYAL_BLUE_1 0x4BBF
#define ROYAL_BLUE_2 0x437D
#define ROYAL_BLUE_3 0x3AF9
#define ROYAL_BLUE_4 0x2A11
#define SALMON_1 0xFC6D
#define SALMON_2 0xEC0C
#define SALMON_3 0xCB8A
#define SALMON_4 0x8A67
#define SEASHELL_1 0xFF9D
#define SEASHELL_2 0xEF3B
#define SEASHELL_3 0xCE37
#define SEASHELL_4 0x8C30
#define SEA_GREEN_1 0x57F3
#define SEA_GREEN_2 0x4F72
#define SEA_GREEN_3 0x4670
#define SEA_GREEN_4 0x344B
#define SIENNA_1 0xFC09
#define SIENNA_2 0xEBC8
#define SIENNA_3 0xCB47
#define SIENNA_4 0x8A45
#define SKY_BLUE_1 0x867F
#define SKY_BLUE_2 0x7DFD
#define SKY_BLUE_3 0x6D39
#define SKY_BLUE_4 0x4B91
#define SLATE_BLUE_1 0x837F
#define SLATE_BLUE_2 0x7B3D
#define SLATE_BLUE_3 0x6AD9
#define SLATE_BLUE_4 0x49F1
#define SLATE_GRAY_1 0xC71F
#define SLATE_GRAY_2 0xB69D
#define SLATE_GRAY_3 0x9DB9
#define SLATE_GRAY_4 0x6BD1
#define SNOW_1 0xFFDE
#define SNOW_2 0xEF3C
#define SNOW_3 0xCE58
#define SNOW_4 0x8C51
#define SPRING_GREEN_1 0x07EF
#define SPRING_GREEN_2 0x076E
#define SPRING_GREEN_3 0x066C
#define SPRING_GREEN_4 0x0448
#define STEEL_BLUE_1 0x65BF
#define STEEL_BLUE_2 0x5D7D
#define STEEL_BLUE_3 0x54B9
#define STEEL_BLUE_4 0x3B31
#define TAN_1 0xFD2A
#define TAN_2 0xECC9
#define TAN_3 0xCC28
#define TAN_4 0x8AC5
#define THISTLE_1 0xFF1F
#define THISTLE_2 0xEE9D
#define THISTLE_3 0xCDB9
#define THISTLE_4 0x8BD1
#define TOMATO_1 0xFB29
#define TOMATO_2 0xEAE8
#define TOMATO_3 0xCA87
#define TOMATO_4 0x89A5
#define TURQUOISE_1 0x079F
#define TURQUOISE_2 0x073D
#define TURQUOISE_3 0x0639
#define TURQUOISE_4 0x0431
#define VIOLET_RED_1 0xF9F2
#define VIOLET_RED_2 0xE9D1
#define VIOLET_RED_3 0xC98F
#define VIOLET_RED_4 0x890A
#define WHEAT_1 0xFF37
#define WHEAT_2 0xEEB5
#define WHEAT_3 0xCDD2
#define WHEAT_4 0x8BEC
#define YELLOW_1 0xFFE0
#define YELLOW_2 0xEF60
#define YELLOW_3 0xCE60
#define YELLOW_4 0x8C40
/*
Copyright 2015 Klaus-Peter Zauner
At your option this work is licensed under a Creative Commons
Attribution-NonCommercial 3.0 Unported License [1], or under a
Creative Commons Attribution-ShareAlike 3.0 Unported License [2].
[1]: See: http://creativecommons.org/licenses/by-nc/3.0/
[2]: See: http://creativecommons.org/licenses/by-sa/3.0/
=================================================================
*/