-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogo.pde
193 lines (155 loc) · 4.55 KB
/
Logo.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
class Logo
{
int size_of_tile = 1000;
int Moveblack = 0;
float decreasing_size = 1;
int move_text_1 = 100;
int move_text_2 = 200;
void drawlogo()
{
if(time < 900)
{
background(0);
}
scale(2.8);
fill(255);
scale(decreasing_size);
//parallelogram
int x1 = 0;
int y1 = 0;
int x2 = 80;
int y2 = 0;
int x3 = 100;
int y3 = 40;
int x4 = 20;
int y4 = 40;
//parallelogram_2
int x1_2 = 20;
int y1_2 = 0;
int x2_2 = 100;
int y2_2 = 0;
int x3_2 = 80;
int y3_2 = 40;
int x4_2 = 0;
int y4_2 = 40;
//parallelogram_1 move
int move = 30;
//parallelogram_2 move
int move2 = 90;
int move2_x = 38;
int move2_y = 17;
//move grope parrallelagram
int move_para_2 = 245;
//parallelogram_4 move
int move_aline_2 = 86;
//parallelogram_5 move
int move_aline = 43;
//parallelogram_3 move
int move3 = 116;
int move3_x = 42;
int move3_y = 0;
//triangle_1
int tri_x1 = 0;
int tri_y1 = 0;
int tri_x2 = 100;
int tri_y2 = 0;
int tri_x3 = 50;
int tri_y3 = 100;
//triangle_
int tri_2_x1 = 0;
int tri_2_y1 = 100;
int tri_2_x2 = 50;
int tri_2_y2 = 0;
int tri_2_x3 = 100;
int tri_2_y3 = 100;
//triangle_move
int move_tri = 30;
int move_tri_x = 90 + 15;
//triangle_2_move
int move_tri_x2 = 200 + 25;
//triangle_3_move
int move_tri_x3 = 145 + 20;
int move_tri_y3 = 25;
if(time > 700 && time < 860)
{
decreasing_size = decreasing_size - 0.01;
background(0);
}
time++;
beginShape();
vertex(x1 + move,y1 + move);
vertex(x2 + move,y2 + move);
vertex(x3 + move,y3 + move);
vertex(x4 + move,y4 + move);
// etc;
endShape();
beginShape();
vertex(x1 + move2 - move2_x,y1 + move2 - move2_y);
vertex(x2 + move2 - move2_x,y2 + move2 - move2_y);
vertex(x3 + move2 - move2_x,y3 + move2 - move2_y);
vertex(x4 + move2 - move2_x,y4 + move2 - move2_y);
// etc;
endShape();
beginShape();
vertex(x1 + move3 - move3_x,y1 + move3 - move3_y);
vertex(x2 + move3 - move3_x,y2 + move3 - move3_y);
vertex(x3 + move3 - move3_x,y3 + move3 - move3_y);
vertex(x4 + move3 - move3_x,y4 + move3 - move3_y);
// etc;
endShape();
triangle(tri_x1 + move_tri + move_tri_x,
tri_y1 + move_tri,
tri_x2 + move_tri + move_tri_x,
tri_y2 + move_tri,
tri_x3 + move_tri + move_tri_x,
tri_y3 + move_tri);
triangle(tri_x1 + move_tri + move_tri_x2,
tri_y1 + move_tri,
tri_x2 + move_tri + move_tri_x2,
tri_y2 + move_tri,
tri_x3 + move_tri + move_tri_x2,
tri_y3 + move_tri);
triangle(tri_2_x1 + move_tri + move_tri_x3,
tri_2_y1 + move_tri + move_tri_y3,
tri_2_x2 + move_tri + move_tri_x3,
tri_2_y2 + move_tri + move_tri_y3,
tri_2_x3 + move_tri + move_tri_x3,
tri_2_y3 + move_tri + move_tri_y3);
beginShape();
vertex(x1_2 + move + move_para_2 + move_aline_2,y1_2 + move);
vertex(x2_2 + move + move_para_2 + move_aline_2,y2_2 + move);
vertex(x3_2 + move + move_para_2 + move_aline_2,y3_2 + move);
vertex(x4_2 + move + move_para_2 + move_aline_2,y4_2 + move);
// etc;
endShape();
beginShape();
vertex(x1_2 + move2 - move2_x + move_para_2 + move_aline,y1_2 + move2 - move2_y);
vertex(x2_2 + move2 - move2_x + move_para_2 + move_aline,y2_2 + move2 - move2_y);
vertex(x3_2 + move2 - move2_x + move_para_2 + move_aline,y3_2 + move2 - move2_y);
vertex(x4_2 + move2 - move2_x + move_para_2 + move_aline,y4_2 + move2 - move2_y);
// etc;
endShape();
beginShape();
vertex(x1_2 + move3 - move3_x + move_para_2,y1_2 + move3 - move3_y);
vertex(x2_2 + move3 - move3_x + move_para_2,y2_2 + move3 - move3_y);
vertex(x3_2 + move3 - move3_x + move_para_2,y3_2 + move3 - move3_y);
vertex(x4_2 + move3 - move3_x + move_para_2,y4_2 + move3 - move3_y);
// etc;
endShape();
fill(255);
textSize(38);
text("WEYLAND CORP", move_text_1, move_text_2 );
if(time > 950)
{
move_text_1 = 395;
move_text_2 = 180;
}
fill(0);
Moveblack = Moveblack + 1;
if(Moveblack > 300)
{
size_of_tile = 0;
}
rect(0 , Moveblack , size_of_tile, size_of_tile);
}
}