forked from mhenstell/acw
-
Notifications
You must be signed in to change notification settings - Fork 4
/
TrialOfZod.pde
40 lines (33 loc) · 1.37 KB
/
TrialOfZod.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
class TrialOfZod extends Routine {
float arcHeight = Config.HEIGHT/4;
float n = 0;
float s = 0.5;
float top;
void draw() {
draw.background(0);
draw.stroke(primaryColor);
draw.fill(0);
draw.strokeWeight(3);
//arc(Config.WIDTH/2,Config.HEIGHT-50,(float)Config.WIDTH+20,50,-PI,0);
//line(0,Config.HEIGHT-25,Config.WIDTH,Config.HEIGHT-25);
top = 85 + controller.pitch/2;
n = n + s;
if (abs(n)>Config.WIDTH) {
n = 0;
}
draw.line(-Config.WIDTH+n, top-45, -Config.WIDTH/2+n, top+45);
draw.line(-Config.WIDTH/2+n, top+45, n, top-45);
draw.line(n, top-45, Config.WIDTH/2+n, top+45);
draw.line(Config.WIDTH/2+n, top+45, Config.WIDTH+n, top-45);
draw.line(Config.WIDTH+n, top-45, Config.WIDTH+Config.WIDTH/2+n, top+45);
draw.line(-Config.WIDTH+n, top+45, -Config.WIDTH/2+n, top-45);
draw.line(-Config.WIDTH/2+n, top-45, n, top+45);
draw.line(n, top+45, Config.WIDTH/2+n, top-45);
draw.line(Config.WIDTH/2+n, top-45, Config.WIDTH+n, top+45);
draw.line(Config.WIDTH+n, top+45, Config.WIDTH+Config.WIDTH/2+n, top-45);
long frame = frameCount - modeFrameStart;
if (frame >Config.FRAMERATE*Config.MODE_TIMEOUT) {
newMode();
}
}
}