-
Notifications
You must be signed in to change notification settings - Fork 0
/
color_temp_table.h
429 lines (425 loc) · 23.2 KB
/
color_temp_table.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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
#include "color_temp.h"
// data source:
//
// Blackbody color datafile (bbr_color.txt)
// Mitchell Charity
// http://www.vendian.org/mncharity/dir3/blackbody/
// Version 2001-Jun-22
// History:
// 2001-Jun-22 Switched to sRGB from Rec.709.
// 2001-Jun-04 Initial release.
// Fields:
// K temperature (K)
// CMF {" 2deg","10deg"}
// either CIE 1931 2 degree CMFs with Judd Vos corrections
// or CIE 1964 10 degree CMFs
// x y chromaticity coordinates
// P power in semi-arbitrary units
// R G B {0-1}, normalized, mapped to gamut, logrithmic
// (sRGB primaries and gamma correction)
// r g b {0-255}
// #rgb {00-ff}
typedef struct color_temp_entry {
double kelvin;
double intensity;
double norm_red;
double norm_green;
double norm_blue;
double byte_red;
double byte_green;
double byte_blue;
} color_temp_entry_t;
const color_temp_entry_t color_temp_table[] = {
{ 1000, 2525000, 1, 0.0401, 0, 255, 56, 0},
{ 1100, 21620000, 1, 0.0631, 0, 255, 71, 0},
{ 1200, 131400000, 1, 0.086, 0, 255, 83, 0},
{ 1300, 611800000, 1, 0.1085, 0, 255, 93, 0},
{ 1400, 2306000000, 1, 0.1303, 0, 255, 101, 0},
{ 1500, 7333000000, 1, 0.1515, 0, 255, 109, 0},
{ 1600, 20280000000, 1, 0.1718, 0, 255, 115, 0},
{ 1700, 49990000000, 1, 0.1912, 0, 255, 121, 0},
{ 1800, 111800000000, 1, 0.2097, 0, 255, 126, 0},
{ 1900, 230500000000, 1, 0.2272, 0, 255, 131, 0},
{ 2000, 443100000000, 1, 0.2484, 0.0061, 255, 137, 18},
{ 2100, 801800000000, 1, 0.2709, 0.0153, 255, 142, 33},
{ 2200, 1377000000000, 1, 0.293, 0.0257, 255, 147, 44},
{ 2300, 2260000000000, 1, 0.3149, 0.0373, 255, 152, 54},
{ 2400, 3563000000000, 1, 0.3364, 0.0501, 255, 157, 63},
{ 2500, 5422000000000, 1, 0.3577, 0.064, 255, 161, 72},
{ 2600, 7996000000000, 1, 0.3786, 0.079, 255, 165, 79},
{ 2700, 11470000000000, 1, 0.3992, 0.095, 255, 169, 87},
{ 2800, 16040000000000, 1, 0.4195, 0.1119, 255, 173, 94},
{ 2900, 21930000000000, 1, 0.4394, 0.1297, 255, 177, 101},
{ 3000, 29390000000000, 1, 0.4589, 0.1483, 255, 180, 107},
{ 3100, 38660000000000, 1, 0.4781, 0.1677, 255, 184, 114},
{ 3200, 50020000000000, 1, 0.497, 0.1879, 255, 187, 120},
{ 3300, 63740000000000, 1, 0.5155, 0.2087, 255, 190, 126},
{ 3400, 80100000000000, 1, 0.5336, 0.2301, 255, 193, 132},
{ 3500, 99390000000000, 1, 0.5515, 0.252, 255, 196, 137},
{ 3600, 121900000000000, 1, 0.5689, 0.2745, 255, 199, 143},
{ 3700, 147900000000000, 1, 0.586, 0.2974, 255, 201, 148},
{ 3800, 177600000000000, 1, 0.6028, 0.3207, 255, 204, 153},
{ 3900, 211500000000000, 1, 0.6193, 0.3444, 255, 206, 159},
{ 4000, 249600000000000, 1, 0.6354, 0.3684, 255, 209, 163},
{ 4100, 292300000000000, 1, 0.6511, 0.3927, 255, 211, 168},
{ 4200, 339700000000000, 1, 0.6666, 0.4172, 255, 213, 173},
{ 4300, 392200000000000, 1, 0.6817, 0.4419, 255, 215, 177},
{ 4400, 450000000000000, 1, 0.6966, 0.4668, 255, 217, 182},
{ 4500, 513200000000000, 1, 0.7111, 0.4919, 255, 219, 186},
{ 4600, 582000000000000, 1, 0.7253, 0.517, 255, 221, 190},
{ 4700, 656700000000000, 1, 0.7392, 0.5422, 255, 223, 194},
{ 4800, 737300000000000, 1, 0.7528, 0.5675, 255, 225, 198},
{ 4900, 824000000000000, 1, 0.7661, 0.5928, 255, 227, 202},
{ 5000, 917000000000000, 1, 0.7792, 0.618, 255, 228, 206},
{ 5100, 1016000000000000, 1, 0.7919, 0.6433, 255, 230, 210},
{ 5200, 1.122E+015, 1, 0.8044, 0.6685, 255, 232, 213},
{ 5300, 1234000000000000, 1, 0.8167, 0.6937, 255, 233, 217},
{ 5400, 1353000000000000, 1, 0.8286, 0.7187, 255, 235, 220},
{ 5500, 1479000000000000, 1, 0.8403, 0.7437, 255, 236, 224},
{ 5600, 1611000000000000, 1, 0.8518, 0.7686, 255, 238, 227},
{ 5700, 1750000000000000, 1, 0.863, 0.7933, 255, 239, 230},
{ 5800, 1896000000000000, 1, 0.874, 0.8179, 255, 240, 233},
{ 5900, 2049000000000000, 1, 0.8847, 0.8424, 255, 242, 236},
{ 6000, 2.208E+015, 1, 0.8952, 0.8666, 255, 243, 239},
{ 6100, 2374000000000000, 1, 0.9055, 0.8907, 255, 244, 242},
{ 6200, 2548000000000000, 1, 0.9156, 0.9147, 255, 245, 245},
{ 6300, 2728000000000000, 1, 0.9254, 0.9384, 255, 246, 248},
{ 6400, 2914000000000000, 1, 0.9351, 0.9619, 255, 248, 251},
{ 6500, 3108000000000000, 1, 0.9445, 0.9853, 255, 249, 253},
{ 6600, 3308000000000000, 0.9917, 0.9458, 1, 254, 249, 255},
{ 6700, 3515000000000000, 0.9696, 0.9336, 1, 252, 247, 255},
{ 6800, 3728000000000000, 0.9488, 0.9219, 1, 249, 246, 255},
{ 6900, 3948000000000000, 0.929, 0.9107, 1, 247, 245, 255},
{ 7000, 4.174E+015, 0.9102, 0.9, 1, 245, 243, 255},
{ 7100, 4407000000000000, 0.8923, 0.8897, 1, 243, 242, 255},
{ 7200, 4647000000000000, 0.8753, 0.8799, 1, 240, 241, 255},
{ 7300, 4892000000000000, 0.8591, 0.8704, 1, 239, 240, 255},
{ 7400, 5144000000000000, 0.8437, 0.8614, 1, 237, 239, 255},
{ 7500, 5402000000000000, 0.8289, 0.8527, 1, 235, 238, 255},
{ 7600, 5666000000000000, 0.8149, 0.8443, 1, 233, 237, 255},
{ 7700, 5937000000000000, 0.8014, 0.8363, 1, 231, 236, 255},
{ 7800, 6213000000000000, 0.7885, 0.8285, 1, 230, 235, 255},
{ 7900, 6495000000000000, 0.7762, 0.8211, 1, 228, 234, 255},
{ 8000, 6783000000000000, 0.7644, 0.8139, 1, 227, 233, 255},
{ 8100, 7076000000000000, 0.7531, 0.8069, 1, 225, 232, 255},
{ 8200, 7376000000000000, 0.7423, 0.8002, 1, 224, 231, 255},
{ 8300, 7681000000000000, 0.7319, 0.7938, 1, 222, 230, 255},
{ 8400, 7991000000000000, 0.7219, 0.7875, 1, 221, 230, 255},
{ 8500, 8307000000000000, 0.7123, 0.7815, 1, 220, 229, 255},
{ 8600, 8628000000000000, 0.703, 0.7757, 1, 218, 228, 255},
{ 8700, 8954000000000001, 0.6941, 0.77, 1, 217, 227, 255},
{ 8800, 9.285E+015, 0.6856, 0.7645, 1, 216, 227, 255},
{ 8900, 9.622E+015, 0.6773, 0.7593, 1, 215, 226, 255},
{ 9000, 9.964E+015, 0.6693, 0.7541, 1, 214, 225, 255},
{ 9100, 1.031E+016, 0.6617, 0.7492, 1, 212, 225, 255},
{ 9200, 1.066E+016, 0.6543, 0.7444, 1, 211, 224, 255},
{ 9300, 1.102E+016, 0.6471, 0.7397, 1, 210, 223, 255},
{ 9400, 1.138E+016, 0.6402, 0.7352, 1, 209, 223, 255},
{ 9500, 1.174E+016, 0.6335, 0.7308, 1, 208, 222, 255},
{ 9600, 1.211E+016, 0.6271, 0.7265, 1, 207, 221, 255},
{ 9700, 1.249E+016, 0.6208, 0.7224, 1, 207, 221, 255},
{ 9800, 1.287E+016, 0.6148, 0.7183, 1, 206, 220, 255},
{ 9900, 1.325E+016, 0.6089, 0.7144, 1, 205, 220, 255},
{ 10000, 1.364E+016, 0.6033, 0.7106, 1, 204, 219, 255},
{ 10100, 1.403E+016, 0.5978, 0.7069, 1, 203, 219, 255},
{ 10200, 1.442E+016, 0.5925, 0.7033, 1, 202, 218, 255},
{ 10300, 1.482E+016, 0.5873, 0.6998, 1, 201, 218, 255},
{ 10400, 1.523E+016, 0.5823, 0.6964, 1, 201, 217, 255},
{ 10500, 1.563E+016, 0.5774, 0.693, 1, 200, 217, 255},
{ 10600, 1.605E+016, 0.5727, 0.6898, 1, 199, 216, 255},
{ 10700, 1.646E+016, 0.5681, 0.6866, 1, 199, 216, 255},
{ 10800, 1.688E+016, 0.5637, 0.6836, 1, 198, 216, 255},
{ 10900, 1.73E+016, 0.5593, 0.6806, 1, 197, 215, 255},
{ 11000, 1.773E+016, 0.5551, 0.6776, 1, 196, 215, 255},
{ 11100, 1.816E+016, 0.551, 0.6748, 1, 196, 214, 255},
{ 11200, 1.859E+016, 0.547, 0.672, 1, 195, 214, 255},
{ 11300, 1.903E+016, 0.5432, 0.6693, 1, 195, 214, 255},
{ 11400, 1.947E+016, 0.5394, 0.6666, 1, 194, 213, 255},
{ 11500, 1.991E+016, 0.5357, 0.664, 1, 193, 213, 255},
{ 11600, 2.036E+016, 0.5322, 0.6615, 1, 193, 212, 255},
{ 11700, 2.081E+016, 0.5287, 0.659, 1, 192, 212, 255},
{ 11800, 2.126E+016, 0.5253, 0.6566, 1, 192, 212, 255},
{ 11900, 2.171E+016, 0.522, 0.6542, 1, 191, 211, 255},
{ 12000, 2.217E+016, 0.5187, 0.6519, 1, 191, 211, 255},
{ 12100, 2.263E+016, 0.5156, 0.6497, 1, 190, 211, 255},
{ 12200, 2.31E+016, 0.5125, 0.6474, 1, 190, 210, 255},
{ 12300, 2.356E+016, 0.5095, 0.6453, 1, 189, 210, 255},
{ 12400, 2.403E+016, 0.5066, 0.6432, 1, 189, 210, 255},
{ 12500, 2.451E+016, 0.5037, 0.6411, 1, 188, 210, 255},
{ 12600, 2.498E+016, 0.5009, 0.6391, 1, 188, 209, 255},
{ 12700, 2.546E+016, 0.4982, 0.6371, 1, 187, 209, 255},
{ 12800, 2.594E+016, 0.4955, 0.6351, 1, 187, 209, 255},
{ 12900, 2.643E+016, 0.4929, 0.6332, 1, 186, 208, 255},
{ 13000, 2.691E+016, 0.4904, 0.6314, 1, 186, 208, 255},
{ 13100, 2.74E+016, 0.4879, 0.6295, 1, 185, 208, 255},
{ 13200, 2.789E+016, 0.4854, 0.6277, 1, 185, 208, 255},
{ 13300, 2.838E+016, 0.4831, 0.626, 1, 185, 207, 255},
{ 13400, 2.888E+016, 0.4807, 0.6243, 1, 184, 207, 255},
{ 13500, 2.938E+016, 0.4785, 0.6226, 1, 184, 207, 255},
{ 13600, 2.988E+016, 0.4762, 0.6209, 1, 183, 207, 255},
{ 13700, 3.038E+016, 0.474, 0.6193, 1, 183, 206, 255},
{ 13800, 3.089E+016, 0.4719, 0.6177, 1, 183, 206, 255},
{ 13900, 3.139E+016, 0.4698, 0.6161, 1, 182, 206, 255},
{ 14000, 3.19E+016, 0.4677, 0.6146, 1, 182, 206, 255},
{ 14100, 3.241E+016, 0.4657, 0.6131, 1, 182, 205, 255},
{ 14200, 3.293E+016, 0.4638, 0.6116, 1, 181, 205, 255},
{ 14300, 3.344E+016, 0.4618, 0.6102, 1, 181, 205, 255},
{ 14400, 3.396E+016, 0.4599, 0.6087, 1, 181, 205, 255},
{ 14500, 3.448E+016, 0.4581, 0.6073, 1, 180, 205, 255},
{ 14600, 3.5E+016, 0.4563, 0.606, 1, 180, 204, 255},
{ 14700, 3.552E+016, 0.4545, 0.6046, 1, 180, 204, 255},
{ 14800, 3.605E+016, 0.4527, 0.6033, 1, 179, 204, 255},
{ 14900, 3.657E+016, 0.451, 0.602, 1, 179, 204, 255},
{ 15000, 3.71E+016, 0.4493, 0.6007, 1, 179, 204, 255},
{ 15100, 3.763E+016, 0.4477, 0.5994, 1, 178, 203, 255},
{ 15200, 3.817E+016, 0.446, 0.5982, 1, 178, 203, 255},
{ 15300, 3.87E+016, 0.4445, 0.597, 1, 178, 203, 255},
{ 15400, 3.923E+016, 0.4429, 0.5958, 1, 178, 203, 255},
{ 15500, 3.977E+016, 0.4413, 0.5946, 1, 177, 203, 255},
{ 15600, 4.031E+016, 0.4398, 0.5935, 1, 177, 202, 255},
{ 15700, 4.085E+016, 0.4384, 0.5923, 1, 177, 202, 255},
{ 15800, 4.139E+016, 0.4369, 0.5912, 1, 177, 202, 255},
{ 15900, 4.194E+016, 0.4355, 0.5901, 1, 176, 202, 255},
{ 16000, 4.248E+016, 0.4341, 0.589, 1, 176, 202, 255},
{ 16100, 4.303E+016, 0.4327, 0.5879, 1, 176, 202, 255},
{ 16200, 4.358E+016, 0.4313, 0.5869, 1, 175, 201, 255},
{ 16300, 4.413E+016, 0.43, 0.5859, 1, 175, 201, 255},
{ 16400, 4.468E+016, 0.4287, 0.5848, 1, 175, 201, 255},
{ 16500, 4.523E+016, 0.4274, 0.5838, 1, 175, 201, 255},
{ 16600, 4.579E+016, 0.4261, 0.5829, 1, 175, 201, 255},
{ 16700, 4.634E+016, 0.4249, 0.5819, 1, 174, 201, 255},
{ 16800, 4.69E+016, 0.4236, 0.5809, 1, 174, 201, 255},
{ 16900, 4.746E+016, 0.4224, 0.58, 1, 174, 200, 255},
{ 17000, 4.802E+016, 0.4212, 0.5791, 1, 174, 200, 255},
{ 17100, 4.858E+016, 0.4201, 0.5781, 1, 173, 200, 255},
{ 17200, 4.914E+016, 0.4189, 0.5772, 1, 173, 200, 255},
{ 17300, 4.971E+016, 0.4178, 0.5763, 1, 173, 200, 255},
{ 17400, 5.027E+016, 0.4167, 0.5755, 1, 173, 200, 255},
{ 17500, 5.084E+016, 0.4156, 0.5746, 1, 173, 200, 255},
{ 17600, 5.141E+016, 0.4145, 0.5738, 1, 172, 199, 255},
{ 17700, 5.197E+016, 0.4134, 0.5729, 1, 172, 199, 255},
{ 17800, 5.254E+016, 0.4124, 0.5721, 1, 172, 199, 255},
{ 17900, 5.312E+016, 0.4113, 0.5713, 1, 172, 199, 255},
{ 18000, 5.369E+016, 0.4103, 0.5705, 1, 172, 199, 255},
{ 18100, 5.426E+016, 0.4093, 0.5697, 1, 171, 199, 255},
{ 18200, 5.484E+016, 0.4083, 0.5689, 1, 171, 199, 255},
{ 18300, 5.541E+016, 0.4074, 0.5681, 1, 171, 199, 255},
{ 18400, 5.599E+016, 0.4064, 0.5674, 1, 171, 198, 255},
{ 18500, 5.657E+016, 0.4055, 0.5666, 1, 171, 198, 255},
{ 18600, 5.715E+016, 0.4045, 0.5659, 1, 170, 198, 255},
{ 18700, 5.773E+016, 0.4036, 0.5652, 1, 170, 198, 255},
{ 18800, 5.831E+016, 0.4027, 0.5644, 1, 170, 198, 255},
{ 18900, 5.889E+016, 0.4018, 0.5637, 1, 170, 198, 255},
{ 19000, 5.947E+016, 0.4009, 0.563, 1, 170, 198, 255},
{ 19100, 6.006E+016, 0.4001, 0.5623, 1, 170, 198, 255},
{ 19200, 6.064E+016, 0.3992, 0.5616, 1, 169, 198, 255},
{ 19300, 6.123E+016, 0.3984, 0.561, 1, 169, 197, 255},
{ 19400, 6.181E+016, 0.3975, 0.5603, 1, 169, 197, 255},
{ 19500, 6.24E+016, 0.3967, 0.5596, 1, 169, 197, 255},
{ 19600, 6.299E+016, 0.3959, 0.559, 1, 169, 197, 255},
{ 19700, 6.358E+016, 0.3951, 0.5584, 1, 169, 197, 255},
{ 19800, 6.417E+016, 0.3943, 0.5577, 1, 169, 197, 255},
{ 19900, 6.476E+016, 0.3935, 0.5571, 1, 168, 197, 255},
{ 20000, 6.535E+016, 0.3928, 0.5565, 1, 168, 197, 255},
{ 20100, 6.595E+016, 0.392, 0.5559, 1, 168, 197, 255},
{ 20200, 6.654E+016, 0.3913, 0.5553, 1, 168, 197, 255},
{ 20300, 6.714E+016, 0.3905, 0.5547, 1, 168, 196, 255},
{ 20400, 6.773E+016, 0.3898, 0.5541, 1, 168, 196, 255},
{ 20500, 6.833E+016, 0.3891, 0.5535, 1, 168, 196, 255},
{ 20600, 6.893E+016, 0.3884, 0.5529, 1, 167, 196, 255},
{ 20700, 6.952E+016, 0.3877, 0.5524, 1, 167, 196, 255},
{ 20800, 7.012E+016, 0.387, 0.5518, 1, 167, 196, 255},
{ 20900, 7.072E+016, 0.3863, 0.5513, 1, 167, 196, 255},
{ 21000, 7.132E+016, 0.3856, 0.5507, 1, 167, 196, 255},
{ 21100, 7.193E+016, 0.385, 0.5502, 1, 167, 196, 255},
{ 21200, 7.253E+016, 0.3843, 0.5496, 1, 167, 196, 255},
{ 21300, 7.313E+016, 0.3836, 0.5491, 1, 166, 196, 255},
{ 21400, 7.373E+016, 0.383, 0.5486, 1, 166, 195, 255},
{ 21500, 7.434E+016, 0.3824, 0.5481, 1, 166, 195, 255},
{ 21600, 7.494E+016, 0.3817, 0.5476, 1, 166, 195, 255},
{ 21700, 7.555E+016, 0.3811, 0.5471, 1, 166, 195, 255},
{ 21800, 7.616E+016, 0.3805, 0.5466, 1, 166, 195, 255},
{ 21900, 7.676E+016, 0.3799, 0.5461, 1, 166, 195, 255},
{ 22000, 7.737E+016, 0.3793, 0.5456, 1, 166, 195, 255},
{ 22100, 7.798E+016, 0.3787, 0.5451, 1, 165, 195, 255},
{ 22200, 7.859E+016, 0.3781, 0.5446, 1, 165, 195, 255},
{ 22300, 7.92E+016, 0.3776, 0.5441, 1, 165, 195, 255},
{ 22400, 7.981E+016, 0.377, 0.5437, 1, 165, 195, 255},
{ 22500, 8.042E+016, 0.3764, 0.5432, 1, 165, 195, 255},
{ 22600, 8.103E+016, 0.3759, 0.5428, 1, 165, 195, 255},
{ 22700, 8.164E+016, 0.3753, 0.5423, 1, 165, 194, 255},
{ 22800, 8.226E+016, 0.3748, 0.5419, 1, 165, 194, 255},
{ 22900, 8.287E+016, 0.3742, 0.5414, 1, 165, 194, 255},
{ 23000, 8.349E+016, 0.3737, 0.541, 1, 164, 194, 255},
{ 23100, 8.41E+016, 0.3732, 0.5405, 1, 164, 194, 255},
{ 23200, 8.472E+016, 0.3726, 0.5401, 1, 164, 194, 255},
{ 23300, 8.533E+016, 0.3721, 0.5397, 1, 164, 194, 255},
{ 23400, 8.595E+016, 0.3716, 0.5393, 1, 164, 194, 255},
{ 23500, 8.657E+016, 0.3711, 0.5389, 1, 164, 194, 255},
{ 23600, 8.718E+016, 0.3706, 0.5384, 1, 164, 194, 255},
{ 23700, 8.78E+016, 0.3701, 0.538, 1, 164, 194, 255},
{ 23800, 8.842E+016, 0.3696, 0.5376, 1, 164, 194, 255},
{ 23900, 8.904E+016, 0.3692, 0.5372, 1, 164, 194, 255},
{ 24000, 8.966E+016, 0.3687, 0.5368, 1, 163, 194, 255},
{ 24100, 9.028E+016, 0.3682, 0.5365, 1, 163, 194, 255},
{ 24200, 9.09E+016, 0.3677, 0.5361, 1, 163, 193, 255},
{ 24300, 9.152E+016, 0.3673, 0.5357, 1, 163, 193, 255},
{ 24400, 9.215E+016, 0.3668, 0.5353, 1, 163, 193, 255},
{ 24500, 9.277E+016, 0.3664, 0.5349, 1, 163, 193, 255},
{ 24600, 9.339E+016, 0.3659, 0.5346, 1, 163, 193, 255},
{ 24700, 9.401E+016, 0.3655, 0.5342, 1, 163, 193, 255},
{ 24800, 9.464E+016, 0.365, 0.5338, 1, 163, 193, 255},
{ 24900, 9.526E+016, 0.3646, 0.5335, 1, 163, 193, 255},
{ 25000, 9.589E+016, 0.3642, 0.5331, 1, 163, 193, 255},
{ 25100, 9.651E+016, 0.3637, 0.5328, 1, 162, 193, 255},
{ 25200, 9.714E+016, 0.3633, 0.5324, 1, 162, 193, 255},
{ 25300, 9.777E+016, 0.3629, 0.5321, 1, 162, 193, 255},
{ 25400, 9.839E+016, 0.3625, 0.5317, 1, 162, 193, 255},
{ 25500, 9.902E+016, 0.3621, 0.5314, 1, 162, 193, 255},
{ 25600, 9.965E+016, 0.3617, 0.531, 1, 162, 193, 255},
{ 25700, 1.003E+017, 0.3613, 0.5307, 1, 162, 193, 255},
{ 25800, 1.009E+017, 0.3609, 0.5304, 1, 162, 193, 255},
{ 25900, 1.015E+017, 0.3605, 0.53, 1, 162, 192, 255},
{ 26000, 1.022E+017, 0.3601, 0.5297, 1, 162, 192, 255},
{ 26100, 1.028E+017, 0.3597, 0.5294, 1, 162, 192, 255},
{ 26200, 1.034E+017, 0.3593, 0.5291, 1, 162, 192, 255},
{ 26300, 1.041E+017, 0.3589, 0.5288, 1, 162, 192, 255},
{ 26400, 1.047E+017, 0.3586, 0.5284, 1, 161, 192, 255},
{ 26500, 1.053E+017, 0.3582, 0.5281, 1, 161, 192, 255},
{ 26600, 1.06E+017, 0.3578, 0.5278, 1, 161, 192, 255},
{ 26700, 1.066E+017, 0.3575, 0.5275, 1, 161, 192, 255},
{ 26800, 1.072E+017, 0.3571, 0.5272, 1, 161, 192, 255},
{ 26900, 1.078E+017, 0.3567, 0.5269, 1, 161, 192, 255},
{ 27000, 1.085E+017, 0.3564, 0.5266, 1, 161, 192, 255},
{ 27100, 1.091E+017, 0.356, 0.5263, 1, 161, 192, 255},
{ 27200, 1.098E+017, 0.3557, 0.526, 1, 161, 192, 255},
{ 27300, 1.104E+017, 0.3553, 0.5257, 1, 161, 192, 255},
{ 27400, 1.11E+017, 0.355, 0.5255, 1, 161, 192, 255},
{ 27500, 1.117E+017, 0.3546, 0.5252, 1, 161, 192, 255},
{ 27600, 1.123E+017, 0.3543, 0.5249, 1, 161, 192, 255},
{ 27700, 1.129E+017, 0.354, 0.5246, 1, 161, 192, 255},
{ 27800, 1.136E+017, 0.3536, 0.5243, 1, 160, 192, 255},
{ 27900, 1.142E+017, 0.3533, 0.5241, 1, 160, 192, 255},
{ 28000, 1.148E+017, 0.353, 0.5238, 1, 160, 191, 255},
{ 28100, 1.155E+017, 0.3527, 0.5235, 1, 160, 191, 255},
{ 28200, 1.161E+017, 0.3524, 0.5232, 1, 160, 191, 255},
{ 28300, 1.168E+017, 0.352, 0.523, 1, 160, 191, 255},
{ 28400, 1.174E+017, 0.3517, 0.5227, 1, 160, 191, 255},
{ 28500, 1.18E+017, 0.3514, 0.5225, 1, 160, 191, 255},
{ 28600, 1.187E+017, 0.3511, 0.5222, 1, 160, 191, 255},
{ 28700, 1.193E+017, 0.3508, 0.5219, 1, 160, 191, 255},
{ 28800, 1.199E+017, 0.3505, 0.5217, 1, 160, 191, 255},
{ 28900, 1.206E+017, 0.3502, 0.5214, 1, 160, 191, 255},
{ 29000, 1.212E+017, 0.3499, 0.5212, 1, 160, 191, 255},
{ 29100, 1.219E+017, 0.3496, 0.5209, 1, 160, 191, 255},
{ 29200, 1.225E+017, 0.3493, 0.5207, 1, 160, 191, 255},
{ 29300, 1.232E+017, 0.349, 0.5204, 1, 159, 191, 255},
{ 29400, 1.238E+017, 0.3487, 0.5202, 1, 159, 191, 255},
{ 29500, 1.244E+017, 0.3485, 0.52, 1, 159, 191, 255},
{ 29600, 1.251E+017, 0.3482, 0.5197, 1, 159, 191, 255},
{ 29700, 1.257E+017, 0.3479, 0.5195, 1, 159, 191, 255},
{ 29800, 1.264E+017, 0.3476, 0.5192, 1, 159, 191, 255},
{ 29900, 1.27E+017, 0.3473, 0.519, 1, 159, 191, 255},
{ 30000, 1.277E+017, 0.3471, 0.5188, 1, 159, 191, 255},
{ 30100, 1.283E+017, 0.3468, 0.5186, 1, 159, 191, 255},
{ 30200, 1.289E+017, 0.3465, 0.5183, 1, 159, 191, 255},
{ 30300, 1.296E+017, 0.3463, 0.5181, 1, 159, 191, 255},
{ 30400, 1.302E+017, 0.346, 0.5179, 1, 159, 190, 255},
{ 30500, 1.309E+017, 0.3457, 0.5177, 1, 159, 190, 255},
{ 30600, 1.315E+017, 0.3455, 0.5174, 1, 159, 190, 255},
{ 30700, 1.322E+017, 0.3452, 0.5172, 1, 159, 190, 255},
{ 30800, 1.328E+017, 0.345, 0.517, 1, 159, 190, 255},
{ 30900, 1.335E+017, 0.3447, 0.5168, 1, 159, 190, 255},
{ 31000, 1.341E+017, 0.3444, 0.5166, 1, 159, 190, 255},
{ 31100, 1.348E+017, 0.3442, 0.5164, 1, 158, 190, 255},
{ 31200, 1.354E+017, 0.3439, 0.5161, 1, 158, 190, 255},
{ 31300, 1.36E+017, 0.3437, 0.5159, 1, 158, 190, 255},
{ 31400, 1.367E+017, 0.3435, 0.5157, 1, 158, 190, 255},
{ 31500, 1.373E+017, 0.3432, 0.5155, 1, 158, 190, 255},
{ 31600, 1.38E+017, 0.343, 0.5153, 1, 158, 190, 255},
{ 31700, 1.386E+017, 0.3427, 0.5151, 1, 158, 190, 255},
{ 31800, 1.393E+017, 0.3425, 0.5149, 1, 158, 190, 255},
{ 31900, 1.399E+017, 0.3423, 0.5147, 1, 158, 190, 255},
{ 32000, 1.406E+017, 0.342, 0.5145, 1, 158, 190, 255},
{ 32100, 1.412E+017, 0.3418, 0.5143, 1, 158, 190, 255},
{ 32200, 1.419E+017, 0.3416, 0.5141, 1, 158, 190, 255},
{ 32300, 1.425E+017, 0.3413, 0.5139, 1, 158, 190, 255},
{ 32400, 1.432E+017, 0.3411, 0.5137, 1, 158, 190, 255},
{ 32500, 1.438E+017, 0.3409, 0.5135, 1, 158, 190, 255},
{ 32600, 1.445E+017, 0.3407, 0.5133, 1, 158, 190, 255},
{ 32700, 1.451E+017, 0.3404, 0.5132, 1, 158, 190, 255},
{ 32800, 1.458E+017, 0.3402, 0.513, 1, 158, 190, 255},
{ 32900, 1.464E+017, 0.34, 0.5128, 1, 158, 190, 255},
{ 33000, 1.471E+017, 0.3398, 0.5126, 1, 158, 190, 255},
{ 33100, 1.477E+017, 0.3396, 0.5124, 1, 158, 190, 255},
{ 33200, 1.484E+017, 0.3393, 0.5122, 1, 157, 190, 255},
{ 33300, 1.49E+017, 0.3391, 0.512, 1, 157, 190, 255},
{ 33400, 1.497E+017, 0.3389, 0.5119, 1, 157, 189, 255},
{ 33500, 1.503E+017, 0.3387, 0.5117, 1, 157, 189, 255},
{ 33600, 1.51E+017, 0.3385, 0.5115, 1, 157, 189, 255},
{ 33700, 1.516E+017, 0.3383, 0.5113, 1, 157, 189, 255},
{ 33800, 1.523E+017, 0.3381, 0.5112, 1, 157, 189, 255},
{ 33900, 1.53E+017, 0.3379, 0.511, 1, 157, 189, 255},
{ 34000, 1.536E+017, 0.3377, 0.5108, 1, 157, 189, 255},
{ 34100, 1.543E+017, 0.3375, 0.5106, 1, 157, 189, 255},
{ 34200, 1.549E+017, 0.3373, 0.5105, 1, 157, 189, 255},
{ 34300, 1.556E+017, 0.3371, 0.5103, 1, 157, 189, 255},
{ 34400, 1.562E+017, 0.3369, 0.5101, 1, 157, 189, 255},
{ 34500, 1.569E+017, 0.3367, 0.51, 1, 157, 189, 255},
{ 34600, 1.575E+017, 0.3365, 0.5098, 1, 157, 189, 255},
{ 34700, 1.582E+017, 0.3363, 0.5096, 1, 157, 189, 255},
{ 34800, 1.588E+017, 0.3361, 0.5095, 1, 157, 189, 255},
{ 34900, 1.595E+017, 0.3359, 0.5093, 1, 157, 189, 255},
{ 35000, 1.602E+017, 0.3357, 0.5091, 1, 157, 189, 255},
{ 35100, 1.608E+017, 0.3356, 0.509, 1, 157, 189, 255},
{ 35200, 1.615E+017, 0.3354, 0.5088, 1, 157, 189, 255},
{ 35300, 1.621E+017, 0.3352, 0.5087, 1, 157, 189, 255},
{ 35400, 1.628E+017, 0.335, 0.5085, 1, 157, 189, 255},
{ 35500, 1.634E+017, 0.3348, 0.5084, 1, 157, 189, 255},
{ 35600, 1.641E+017, 0.3346, 0.5082, 1, 156, 189, 255},
{ 35700, 1.647E+017, 0.3345, 0.508, 1, 156, 189, 255},
{ 35800, 1.654E+017, 0.3343, 0.5079, 1, 156, 189, 255},
{ 35900, 1.661E+017, 0.3341, 0.5077, 1, 156, 189, 255},
{ 36000, 1.667E+017, 0.3339, 0.5076, 1, 156, 189, 255},
{ 36100, 1.674E+017, 0.3338, 0.5074, 1, 156, 189, 255},
{ 36200, 1.68E+017, 0.3336, 0.5073, 1, 156, 189, 255},
{ 36300, 1.687E+017, 0.3334, 0.5071, 1, 156, 189, 255},
{ 36400, 1.693E+017, 0.3332, 0.507, 1, 156, 189, 255},
{ 36500, 1.7E+017, 0.3331, 0.5068, 1, 156, 189, 255},
{ 36600, 1.707E+017, 0.3329, 0.5067, 1, 156, 189, 255},
{ 36700, 1.713E+017, 0.3327, 0.5066, 1, 156, 189, 255},
{ 36800, 1.72E+017, 0.3326, 0.5064, 1, 156, 189, 255},
{ 36900, 1.726E+017, 0.3324, 0.5063, 1, 156, 189, 255},
{ 37000, 1.733E+017, 0.3322, 0.5061, 1, 156, 189, 255},
{ 37100, 1.74E+017, 0.3321, 0.506, 1, 156, 189, 255},
{ 37200, 1.746E+017, 0.3319, 0.5058, 1, 156, 188, 255},
{ 37300, 1.753E+017, 0.3317, 0.5057, 1, 156, 188, 255},
{ 37400, 1.759E+017, 0.3316, 0.5056, 1, 156, 188, 255},
{ 37500, 1.766E+017, 0.3314, 0.5054, 1, 156, 188, 255},
{ 37600, 1.772E+017, 0.3313, 0.5053, 1, 156, 188, 255},
{ 37700, 1.779E+017, 0.3311, 0.5052, 1, 156, 188, 255},
{ 37800, 1.786E+017, 0.3309, 0.505, 1, 156, 188, 255},
{ 37900, 1.792E+017, 0.3308, 0.5049, 1, 156, 188, 255},
{ 38000, 1.799E+017, 0.3306, 0.5048, 1, 156, 188, 255},
{ 38100, 1.805E+017, 0.3305, 0.5046, 1, 156, 188, 255},
{ 38200, 1.812E+017, 0.3303, 0.5045, 1, 156, 188, 255},
{ 38300, 1.819E+017, 0.3302, 0.5044, 1, 156, 188, 255},
{ 38400, 1.825E+017, 0.33, 0.5042, 1, 155, 188, 255},
{ 38500, 1.832E+017, 0.3299, 0.5041, 1, 155, 188, 255},
{ 38600, 1.839E+017, 0.3297, 0.504, 1, 155, 188, 255},
{ 38700, 1.845E+017, 0.3296, 0.5038, 1, 155, 188, 255},
{ 38800, 1.852E+017, 0.3294, 0.5037, 1, 155, 188, 255},
{ 38900, 1.858E+017, 0.3293, 0.5036, 1, 155, 188, 255},
{ 39000, 1.865E+017, 0.3291, 0.5035, 1, 155, 188, 255},
{ 39100, 1.872E+017, 0.329, 0.5033, 1, 155, 188, 255},
{ 39200, 1.878E+017, 0.3288, 0.5032, 1, 155, 188, 255},
{ 39300, 1.885E+017, 0.3287, 0.5031, 1, 155, 188, 255},
{ 39400, 1.891E+017, 0.3286, 0.503, 1, 155, 188, 255},
{ 39500, 1.898E+017, 0.3284, 0.5028, 1, 155, 188, 255},
{ 39600, 1.905E+017, 0.3283, 0.5027, 1, 155, 188, 255},
{ 39700, 1.911E+017, 0.3281, 0.5026, 1, 155, 188, 255},
{ 39800, 1.918E+017, 0.328, 0.5025, 1, 155, 188, 255},
{ 39900, 1.925E+017, 0.3279, 0.5024, 1, 155, 188, 255},
{ 40000, 1.931E+017, 0.3277, 0.5022, 1, 155, 188, 255}
};
#define COLOR_TEMP_TABLE_LEN (sizeof(color_temp_table) / sizeof(color_temp_table[0]))