-
Notifications
You must be signed in to change notification settings - Fork 1
/
Config.pde
57 lines (49 loc) · 1.61 KB
/
Config.pde
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
public static class Config {
public static String HOST = "127.0.0.1";
public static int PORT = 58082;
public static int STRIPS = 40;
public static int LEDS = 160;
public static boolean ENABLE_GAMMA = false; //true;
public static float GAMMA_VALUE = 2.5;
public static float ZOOM = 4;
public static float BRIGHTNESS = 1.0;
public static float FRAMERATE = 60;
public static float MODE_TIMEOUT = 300;
public static boolean MAP_SWIRL = false;
public static int MAP_WIDTH = 360;
public static int MAP_HEIGHT = 360;
public static int MAP_PADDING = 20;
public static color[] PALETTE = new color[] {
col(255,255,255),
col(170,11,5),
col(232,183,42),
col(75,166,0),
col(34,173,228),
col(136,8,103),
col(245,244,240),
col(130,21,14)
};
public static int[] STRIP_LOOKUP = new int[] {
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1
};
public static boolean[] SWAP_LOOKUP = new boolean[] {
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false
};
public static int col(int r, int g, int b, int a) {
return (a<<24) | (r<<16) | (g<<8) | b;
}
public static int col(int r, int g, int b) {
return col(r,g,b,255);
}
public static int col(int b) {
return col(b,b,b,255);
}
}