-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButtons.pde
113 lines (81 loc) · 3.54 KB
/
Buttons.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
class Buttons
{
float points = 5;
float move_down = 10;
float move_over = 1140;
float move_over_1 = 1220;
float move_over_2 = 1300;
PShape button;
void Draw_button()
{
pushMatrix();
fill(100);
ellipse(25 + move_over, 25 + move_down, 55, 55);
fill(0);
ellipse(25 + move_over, 25 + move_down, 30, 30);
noStroke();
fill(255);
createShape();
beginShape();
vertex(3 * points + move_over,5 * points + move_down);
vertex(7 * points + move_over,5 * points + move_down);
vertex(8 * points + move_over, 15 * points + move_down);
curveVertex(8 * points + move_over, 15 * points + move_down);
curveVertex(8 * points + move_over, 15 * points + move_down);
curveVertex(7 * points + move_over,16 * points + move_down);
curveVertex(5 * points + move_over,17 * points + move_down);
curveVertex(3 * points + move_over,16 * points + move_down);
curveVertex(2 * points + move_over, 15 * points + move_down);
curveVertex(2 * points + move_over, 15 * points + move_down);
vertex(2 * points + move_over, 15 * points + move_down);
// etc;
endShape();
popMatrix();
pushMatrix();
fill(100);
ellipse(25 + move_over_1, 25 + move_down, 55, 55); // Black rectangle
fill(0);
ellipse(25 + move_over_1, 25 + move_down, 30, 30); // Gray rectangle
noStroke();
fill(255);
beginShape();
vertex(3 * points + move_over_1,5 * points + move_down);
vertex(7 * points + move_over_1,5 * points + move_down);
vertex(8 * points + move_over_1, 15 * points + move_down);
curveVertex(8 * points + move_over_1, 15 * points + move_down);
curveVertex(8 * points + move_over_1, 15 * points + move_down);
curveVertex(7 * points + move_over_1,16 * points + move_down);
curveVertex(5 * points + move_over_1,17 * points + move_down);
curveVertex(3 * points + move_over_1,16 * points + move_down);
curveVertex(2 * points + move_over_1, 15 * points + move_down);
curveVertex(2 * points + move_over_1, 15 * points + move_down);
vertex(2 * points + move_over_1, 15 * points + move_down);
// etc;
endShape();
translate(100,0);
popMatrix();
pushMatrix();
fill(100);
ellipse(25 + move_over_2, 25 + move_down, 55, 55); // Black rectangle
fill(0);
ellipse(25 + move_over_2, 25 + move_down, 30, 30); // Gray rectangle
noStroke();
fill(255);
beginShape();
vertex(3 * points + move_over_2,5 * points + move_down);
vertex(7 * points + move_over_2,5 * points + move_down);
vertex(8 * points + move_over_2, 15 * points + move_down);
curveVertex(8 * points + move_over_2, 15 * points + move_down);
curveVertex(8 * points + move_over_2, 15 * points + move_down);
curveVertex(7 * points + move_over_2,16 * points + move_down);
curveVertex(5 * points + move_over_2,17 * points + move_down);
curveVertex(3 * points + move_over_2,16 * points + move_down);
curveVertex(2 * points + move_over_2, 15 * points + move_down);
curveVertex(2 * points + move_over_2, 15 * points + move_down);
vertex(2 * points + move_over_2, 15 * points + move_down);
// etc;
endShape();
translate(100,0);
popMatrix();
}
}