-
Notifications
You must be signed in to change notification settings - Fork 2
/
v.js
48 lines (42 loc) · 1 KB
/
v.js
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
function V() {
push();
translate(trackCount*track + trackingCount*tracking,0);
push();
shearX(shrX);
beginShape();
vertex(0, 0);
vertex(0, -ay - divY2);
vertex(ax, -ay - 2*divY2);
vertex(ax, 0);
vertex(ax + divX1, divY1);
vertex(divX1, divY1 + divY2);
vertex(0,divY2)
vertex(0, 0);
endShape();
//bar
push();
translate(divX1, divY1 + divY2);
beginShape();
vertex(0,0);
vertex(bx, -divY3);
vertex(bx - divX2, -divY3 - divY4);
vertex(-divX2, - divY4);
vertex(0,0);
endShape();
pop();
push();
translate(ax+ divX1 - lap*ax,lap*divY2);
beginShape();
vertex(0, 0);
vertex(0, -ay - divY2 - lap*divY2);
vertex(ax, -ay - 2*divY2 - lap*divY2);
vertex(ax, -divY2 + divY1);
vertex(0, divY1)
vertex(0, 0);
endShape();
pop();
pop();
pop();
trackingCount++;
trackCount+=2;
}