-
Notifications
You must be signed in to change notification settings - Fork 2
/
l.js
45 lines (38 loc) · 1.13 KB
/
l.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
function L() {
push();
translate(trackCount*track + trackingCount*tracking,0);
push();
shearX(shrX);
beginShape();
vertex(0, 0);
if(radioTop.value() == 2){
vertex(0, -ay - asc - divY1/2 - divY2);
vertex(ax, -ay - asc - divY1/2 - divY2);
} else if(radioTop.value() == 3){
vertex(0, -ay - asc - divY1/2);
vertex(ax, -ay - asc - divY1/2 - divY2);
} else {
vertex(0, -ay - asc);
vertex(-divX1/2, -ay - asc - divY1/2);
vertex(-divX1/2 + ax, -ay - asc - divY1/2 - divY2);
vertex(ax, -ay - asc - divY2);
}
if(radioBottom.value() == 2){
vertex(ax,divY1+divY2);
vertex(0,divY1+divY2);
} else if(radioBottom.value() == 3){
vertex(ax,divY1);
vertex(0,divY1+divY2);
} else {
vertex(ax, divY1/2);
vertex(ax + divX1/2, divY1);
vertex(divX1/2, divY1+divY2);
vertex(0,divY1/2 + divY2);
}
vertex(0, 0);
endShape();
pop();
pop();
trackingCount++;
trackCount+=1;
}