palette/encoding/srgb/
lookup_tables.rs

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
pub const SRGB_U8_TO_F64: [f64; 256] = [
    0.0,
    0.0003035269910469651,
    0.0006070539820939302,
    0.0009105810313485563,
    0.0012141079641878605,
    0.0015176349552348256,
    0.0018211620626971126,
    0.0021246890537440777,
    0.002428215928375721,
    0.002731743035838008,
    0.0030352699104696512,
    0.003346534911543131,
    0.0036765062250196934,
    0.004024716559797525,
    0.004391441121697426,
    0.00477695232257247,
    0.005181515123695135,
    0.005605390761047602,
    0.00604883162304759,
    0.006512089166790247,
    0.006995408330112696,
    0.007499029394239187,
    0.008023192174732685,
    0.00856812484562397,
    0.009134056977927685,
    0.009721215814352036,
    0.010329820215702057,
    0.010960093699395657,
    0.011612244881689548,
    0.01228648703545332,
    0.012983030639588833,
    0.013702080585062504,
    0.014443840831518173,
    0.015208511613309383,
    0.015996290370821953,
    0.016807375475764275,
    0.017641952261328697,
    0.01850021816790104,
    0.019382357597351074,
    0.020288558676838875,
    0.021219005808234215,
    0.02217387966811657,
    0.023153364658355713,
    0.024157630279660225,
    0.02518685720860958,
    0.02624121867120266,
    0.02732088789343834,
    0.0284260343760252,
    0.02955683320760727,
    0.030713440850377083,
    0.03189602866768837,
    0.03310476616024971,
    0.03433980792760849,
    0.03560131415724754,
    0.036889445036649704,
    0.038204375654459,
    0.039546236395835876,
    0.040915198624134064,
    0.0423114113509655,
    0.04373502731323242,
    0.045186202973127365,
    0.04666508361697197,
    0.04817182198166847,
    0.04970656335353851,
    0.05126945301890373,
    0.05286063998937607,
    0.05448026955127716,
    0.05612848326563835,
    0.05780542269349098,
    0.059511229395866394,
    0.06124604120850563,
    0.06301002204418182,
    0.06480326503515244,
    0.0666259378194809,
    0.06847816705703735,
    0.07036009430885315,
    0.07227184623479843,
    0.07421356439590454,
    0.07618537545204163,
    0.07818741351366043,
    0.0802198126912117,
    0.08228269964456558,
    0.08437620103359222,
    0.08650045096874237,
    0.08865556865930557,
    0.09084169566631317,
    0.09305896610021591,
    0.09530746191740036,
    0.09758734703063965,
    0.09989872574806213,
    0.10224172472953796,
    0.10461647808551788,
    0.10702309757471085,
    0.1094617024064064,
    0.1119324192404747,
    0.1144353598356247,
    0.11697067320346832,
    0.11953843384981155,
    0.12213877588510513,
    0.12477181851863861,
    0.12743768095970154,
    0.13013647496700287,
    0.13286831974983215,
    0.13563334941864014,
    0.1384316235780716,
    0.14126330614089966,
    0.1441284865140915,
    0.14702728390693665,
    0.14995980262756348,
    0.15292616188526154,
    0.15592646598815918,
    0.15896083414554596,
    0.16202937066555023,
    0.16513219475746155,
    0.16826939582824707,
    0.17144109308719635,
    0.17464739084243774,
    0.1778884083032608,
    0.1811642348766327,
    0.18447500467300415,
    0.18782079219818115,
    0.19120167195796967,
    0.19461780786514282,
    0.19806930422782898,
    0.2015562355518341,
    0.20507870614528656,
    0.20863685011863708,
    0.21223078668117523,
    0.2158605307340622,
    0.2195262312889099,
    0.22322797775268555,
    0.22696588933467865,
    0.23074007034301758,
    0.2345505952835083,
    0.23839758336544037,
    0.24228113889694214,
    0.24620133638381958,
    0.25015828013420105,
    0.2541520893573761,
    0.2581828534603119,
    0.2622506618499756,
    0.26635560393333435,
    0.27049779891967773,
    0.2746773064136505,
    0.27889424562454224,
    0.28314873576164246,
    0.28744083642959595,
    0.2917706370353699,
    0.2961382567882538,
    0.30054378509521484,
    0.3049872815608978,
    0.3094688951969147,
    0.31398868560791016,
    0.31854674220085144,
    0.3231431841850281,
    0.32777807116508484,
    0.3324514925479889,
    0.3371635675430298,
    0.3419143855571747,
    0.3467040956020355,
    0.35153263807296753,
    0.35640016198158264,
    0.3613067865371704,
    0.366252601146698,
    0.37123769521713257,
    0.3762621283531189,
    0.38132601976394653,
    0.38642942905426025,
    0.3915724754333496,
    0.3967552185058594,
    0.4019777774810791,
    0.40724021196365356,
    0.4125426113605499,
    0.41788506507873535,
    0.423267662525177,
    0.42869046330451965,
    0.43415361642837524,
    0.43965715169906616,
    0.44520115852355957,
    0.450785756111145,
    0.4564109742641449,
    0.46207696199417114,
    0.46778374910354614,
    0.47353145480155945,
    0.47932013869285583,
    0.48514989018440247,
    0.4910207986831665,
    0.4969329237937927,
    0.5028864145278931,
    0.5088812708854675,
    0.5149176716804504,
    0.5209956169128418,
    0.5271152257919312,
    0.5332764983177185,
    0.5394796133041382,
    0.5457245707511902,
    0.5520114898681641,
    0.5583404898643494,
    0.5647116303443909,
    0.5711249113082886,
    0.5775805115699768,
    0.5840784907341003,
    0.590618908405304,
    0.5972018837928772,
    0.6038274168968201,
    0.6104956269264221,
    0.6172066330909729,
    0.6239604353904724,
    0.630757212638855,
    0.6375969648361206,
    0.6444797515869141,
    0.6514056921005249,
    0.6583748459815979,
    0.6653873324394226,
    0.6724432110786438,
    0.6795425415039063,
    0.68668532371521,
    0.693871796131134,
    0.7011018991470337,
    0.7083758115768433,
    0.7156935334205627,
    0.7230551242828369,
    0.7304607629776001,
    0.7379104495048523,
    0.7454043626785278,
    0.7529423236846924,
    0.7605246305465698,
    0.7681512832641602,
    0.7758223414421082,
    0.7835379242897034,
    0.7912980318069458,
    0.7991028428077698,
    0.8069523572921753,
    0.8148466944694519,
    0.8227858543395996,
    0.830769956111908,
    0.8387991189956665,
    0.8468732833862305,
    0.854992687702179,
    0.8631572723388672,
    0.8713672161102295,
    0.8796224594116211,
    0.8879231810569763,
    0.8962693810462952,
    0.904661238193512,
    0.9130986928939819,
    0.9215819239616394,
    0.9301108717918396,
    0.9386857748031616,
    0.9473065733909607,
    0.9559733867645264,
    0.9646862745285034,
    0.9734452962875366,
    0.9822505712509155,
    0.9911020994186401,
    1.0,
];