forked from swharden/Spectrogram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArgo.cs
More file actions
55 lines (52 loc) · 3.41 KB
/
Copy pathArgo.cs
File metadata and controls
55 lines (52 loc) · 3.41 KB
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
/* Argo is a closed-source weak signal spectrogram.
* This colormap was created to mimic the colors used by Argo.
* https://www.i2phd.org/argo/index.html
* https://digilander.libero.it/i2phd/argo/
*/
using System;
namespace Spectrogram.Colormaps
{
class Argo : IColormap
{
public (byte r, byte g, byte b) GetRGB(byte value)
{
byte[] bytes = BitConverter.GetBytes(rgb[value]);
return (bytes[2], bytes[1], bytes[0]);
}
private readonly int[] rgb =
{
00000000, 00000004, 00000264, 00000267, 00000527, 00000530, 00000789, 00066328,
00066588, 00066591, 00066849, 00132388, 00132647, 00132650, 00132908, 00198447,
00198706, 00198708, 00264503, 00264505, 00330299, 00330557, 00330560, 00396354,
00396612, 00462150, 00462408, 00527946, 00528204, 00593998, 00594000, 00659794,
00660052, 00725590, 00791383, 00791641, 00857435, 00857437, 00923230, 00989024,
00989026, 01054819, 01120613, 01120870, 01186408, 01252201, 01252459, 01318252,
01384046, 01384047, 01449841, 01515634, 01515892, 01581429, 01647222, 01713016,
01713273, 01779066, 01844860, 01910397, 01976190, 01976447, 02042241, 02108034,
02173827, 02239364, 02239621, 02305415, 02371208, 02437001, 02502794, 02568587,
02568844, 02634381, 02700174, 02765968, 02831761, 02897554, 02963347, 03029140,
03029397, 03095190, 03160983, 03226520, 03292313, 03358106, 03423899, 03489692,
03555485, 03621278, 03687071, 03752864, 03818656, 03884449, 03950242, 04016035,
04081828, 04147621, 04147878, 04213671, 04279464, 04345256, 04411049, 04476842,
04542635, 04608428, 04739757, 04805550, 04871342, 04937135, 05002928, 05068721,
05134514, 05200306, 05266099, 05331892, 05397685, 05463477, 05529270, 05595063,
05660856, 05726648, 05792441, 05858234, 05924027, 05989819, 06121148, 06186941,
06252734, 06318526, 06384319, 06450112, 06515904, 06581953, 06647746, 06779074,
06844867, 06910660, 06976452, 07042245, 07108038, 07173830, 07239623, 07370952,
07436744, 07502793, 07568586, 07634378, 07700171, 07765964, 07897292, 07963085,
08028877, 08094670, 08160719, 08226511, 08357840, 08423632, 08489425, 08555218,
08621010, 08752339, 08818387, 08884180, 08949973, 09015765, 09147094, 09212886,
09278679, 09344727, 09410520, 09541849, 09607641, 09673434, 09739226, 09870555,
09936603, 10002396, 10068188, 10133981, 10265309, 10331102, 10397150, 10462943,
10594272, 10660064, 10725857, 10791905, 10923234, 10989026, 11054819, 11120611,
11251940, 11317988, 11383781, 11515109, 11580902, 11646694, 11712743, 11844071,
11909864, 11975656, 12106985, 12173033, 12238826, 12304618, 12435947, 12501995,
12567787, 12699116, 12764908, 12830701, 12962285, 13028078, 13093870, 13159663,
13291247, 13357040, 13422832, 13554161, 13619953, 13686001, 13817330, 13883122,
13948915, 14080499, 14146292, 14212084, 14343412, 14409461, 14475253, 14606582,
14672374, 14738423, 14869751, 14935543, 15066872, 15132920, 15198713, 15330041,
15396090, 15461882, 15593210, 15659003, 15725051, 15856380, 15922172, 16053500,
16119549, 16185341, 16316670, 16382718, 16448510, 16579839, 16645631, 16777215,
};
}
}