- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
Latest commit
18 lines (14 loc) · 513 Bytes
/
Copy pathexample.py
File metadata and controls
18 lines (14 loc) · 513 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fromprogressbarimportProgressBar
importtime
spectrum= \
[196, 202, 208, 214, 220, 226, 190, 154, 118, 82, 46, 47, 48,
49, 50, 51, 45, 39, 33, 27, 21, 57, 93, 129, 165, 201]
g2= [5, 99, 105, 111, 117, 123, 86, 80, 74, 68, 62]
gradient= (g2+list(reversed(g2))) *6
if__name__=='__main__':
print'Beginning boring task...'
withProgressBar(fill=gradient) asp:
foriinrange(500):
p.tick(1.0/(500))
time.sleep(0.02- (.000025*i))
print'Done!'