-
Notifications
You must be signed in to change notification settings - Fork 12
/
playlist-decke.py
31 lines (28 loc) · 1.32 KB
/
playlist-decke.py
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
import dircache
import random
def ddc_chooser():
alle = dircache.listdir('animations/ddc')
ddc_list = []
for i in alle:
if i[0:3] == 'ddc' and i[-1] == 'y':
ddc_list.append('ddc/'+i)
return random.choice(ddc_list)
def getPlaylist():
playlist = [
# [time_in_seconds, [[simultanious_animation1, argument1, ...], [simultanious_animation2, argument1, ...], ...]]
# [20, [["python","animations/black.py","--wall=0"]]],
# [20, [["python","animations/screw.py","--wall=0"], ["python","animations/rainbowscroll.py","--wall=1"]]],
[20, [["python","animations/screw-slow.py"]]],
[20, [["python","animations/rainbowscroll-slow.py"]]],
# [20, [["python","animations/s-color4.py"]]],
# [20, [["python","animations/gameoflife.py"]]],
# [20, [["python","animations/dmm/hackerbrucke.py"]]],
# [20, [["python","animations/red-sym-scroll.py"]]],
# [20, [["python","animations/multiwall_fullpulse.py"]]],
# [20, [["python","animations/dropping.py"]]],
# [20, [["python","animations/dmm/hackerbrucke.py"]]],
# [20, [["python","animations/dmm/dt.py"]]],
# [20, [["python","animations/dmm/uhrzeit.py"]]],
# [20, [["python","animations/multiwall_warp_core.py"]]],
]
return playlist